Lately i have migrated some schemas from mysql 4 to mysql 5.6. Everything works fine except one issue: Hebrew characters appears in Gibberish.
Here is the current configuration:
SHOW VARIABLES LIKE 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | hebrew |
| character_set_connection | hebrew |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | hebrew |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
select * from INFORMATION_SCHEMA.CHARACTER_SETS where CHARACTER_SET_NAME='Hebrew';
+--------------------+----------------------+-------------------+--------+
| CHARACTER_SET_NAME | DEFAULT_COLLATE_NAME | DESCRIPTION | MAXLEN |
+--------------------+----------------------+-------------------+--------+
| hebrew | hebrew_general_ci | ISO 8859-8 Hebrew | 1 |
+--------------------+----------------------+-------------------+--------+
select * from INFORMATION_SCHEMA.COLLATIONS where CHARACTER_SET_NAME='Hebrew';
+-------------------+--------------------+----+------------+-------------+---------+
| COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT | IS_COMPILED | SORTLEN |
+-------------------+--------------------+----+------------+-------------+---------+
| hebrew_general_ci | hebrew | 16 | Yes | Yes | 1 |
| hebrew_bin | hebrew | 71 | | Yes | 1 |
+-------------------+--------------------+----+------------+-------------+---------+
My dump file contains the following statement for example:
Create Table: CREATE TABLE `table` (
) ENGINE=InnoDB DEFAULT CHARSET=hebrew
I tried to change it to the following, which didn't help:
Create Table: CREATE TABLE `table` (
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
Values for example:
select manufacturer, hex(manufacturer) from cars LIMIT 5;
+--------------+-------------------+
| manufacturer | hex(manufacturer) |
+--------------+-------------------+
| ������ | F1E5E1E0F8E5 |
| ������ | F1E5E1E0F8E5 |
| ������ | F1E5E1E0F8E5 |
| ���� | E0E5E3E9 |
| ���� | E0E5E3E9 |
+--------------+-------------------+
Any suggestions? What could be the issue?
character_set_results
from utf8 to Hebrew, it fix the issue for the new schemas, that has been imported from the old instance, But it make the current schemas to appear in Gebberish. Is this variable can be defined per schema? If so' i'll set it only on the new schemas. – Omri Aug 29 '17 at 12:29SELECT HEX(...)
as suggested in my link -- I want to see is in the table. ("Gibberish" is not specific enough for me to determine which of several problem you are having.) – Rick James Aug 29 '17 at 13:20mysql
, but there are other clients?? – Rick James Aug 29 '17 at 13:59