valeriy-kravchuks-macbook-pro:trunk openxs$ bin/mysql -uroot --column-type test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.5-m3-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select charset(md5('a')),collation(md5('a')); Field 1: `charset(md5('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(md5('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +-------------------+---------------------+ | charset(md5('a')) | collation(md5('a')) | +-------------------+---------------------+ | utf8 | utf8_general_ci | +-------------------+---------------------+ 1 row in set (0.02 sec) mysql> select charset(old_password('a')),collation(old_password('a')); Field 1: `charset(old_password('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(old_password('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +----------------------------+------------------------------+ | charset(old_password('a')) | collation(old_password('a')) | +----------------------------+------------------------------+ | utf8 | utf8_general_ci | +----------------------------+------------------------------+ 1 row in set (0.00 sec) mysql> select charset(password('a')),collation(password('a')); Field 1: `charset(password('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(password('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +------------------------+--------------------------+ | charset(password('a')) | collation(password('a')) | +------------------------+--------------------------+ | utf8 | utf8_general_ci | +------------------------+--------------------------+ 1 row in set (0.00 sec) mysql> select charset(sha('a')),collation(sha('a')); Field 1: `charset(sha('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(sha('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +-------------------+---------------------+ | charset(sha('a')) | collation(sha('a')) | +-------------------+---------------------+ | utf8 | utf8_general_ci | +-------------------+---------------------+ 1 row in set (0.00 sec) mysql> select charset(sha1('a')),collation(sha1('a')); Field 1: `charset(sha1('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(sha1('a'))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +--------------------+----------------------+ | charset(sha1('a')) | collation(sha1('a')) | +--------------------+----------------------+ | utf8 | utf8_general_ci | +--------------------+----------------------+ 1 row in set (0.00 sec) mysql> select charset(astext(point(1,2))),collation(astext(point(1,2))); Field 1: `charset(astext(point(1,2)))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(astext(point(1,2)))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +-----------------------------+-------------------------------+ | charset(astext(point(1,2))) | collation(astext(point(1,2))) | +-----------------------------+-------------------------------+ | utf8 | utf8_general_ci | +-----------------------------+-------------------------------+ 1 row in set (0.00 sec) mysql> select charset(aswkt(point(1,2))),collation(aswkt(point(1,2))); Field 1: `charset(aswkt(point(1,2)))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 4 Decimals: 31 Flags: NOT_NULL Field 2: `collation(aswkt(point(1,2)))` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 15 Decimals: 31 Flags: NOT_NULL +----------------------------+------------------------------+ | charset(aswkt(point(1,2))) | collation(aswkt(point(1,2))) | +----------------------------+------------------------------+ | utf8 | utf8_general_ci | +----------------------------+------------------------------+ 1 row in set (0.00 sec) mysql> mysql> set @x=md5('a');select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL +-------------+---------------+ | charset(@x) | collation(@x) | +-------------+---------------+ | binary | binary | +-------------+---------------+ 1 row in set (0.00 sec) mysql> set @x=old_password('a');select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 17 Decimals: 31 Flags: NOT_NULL +-------------+-------------------+ | charset(@x) | collation(@x) | +-------------+-------------------+ | latin1 | latin1_swedish_ci | +-------------+-------------------+ 1 row in set (0.00 sec) mysql> set @x=password('a');select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 17 Decimals: 31 Flags: NOT_NULL +-------------+-------------------+ | charset(@x) | collation(@x) | +-------------+-------------------+ | latin1 | latin1_swedish_ci | +-------------+-------------------+ 1 row in set (0.00 sec) mysql> set @x=sha('a');select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL +-------------+---------------+ | charset(@x) | collation(@x) | +-------------+---------------+ | binary | binary | +-------------+---------------+ 1 row in set (0.00 sec) mysql> set @x=sha1('a');select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL +-------------+---------------+ | charset(@x) | collation(@x) | +-------------+---------------+ | binary | binary | +-------------+---------------+ 1 row in set (0.00 sec) mysql> set @x=astext(point(1,2));select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL +-------------+---------------+ | charset(@x) | collation(@x) | +-------------+---------------+ | binary | binary | +-------------+---------------+ 1 row in set (0.00 sec) mysql> set @x=aswkt(point(1,2));select charset(@x),collation(@x); Query OK, 0 rows affected (0.00 sec) Field 1: `charset(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL Field 2: `collation(@x)` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 6 Decimals: 31 Flags: NOT_NULL +-------------+---------------+ | charset(@x) | collation(@x) | +-------------+---------------+ | binary | binary | +-------------+---------------+ 1 row in set (0.00 sec) mysql> show variables like 'char%';Field 1: `Variable_name` Catalog: `def` Database: `information_schema` Table: `VARIABLES` Org_table: `VARIABLES` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 192 Max_length: 24 Decimals: 0 Flags: NOT_NULL Field 2: `Value` Catalog: `def` Database: `information_schema` Table: `VARIABLES` Org_table: `VARIABLES` Type: VAR_STRING Collation: utf8_general_ci (33) Length: 3072 Max_length: 45 Decimals: 0 Flags: +--------------------------+-----------------------------------------------+ | Variable_name | Value | +--------------------------+-----------------------------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /Users/openxs/dbs/trunk/share/mysql/charsets/ | +--------------------------+-----------------------------------------------+ 8 rows in set (0.00 sec) mysql> exit Bye valeriy-kravchuks-macbook-pro:trunk openxs$ echo $LANG uk_UA.UTF-8