問題摘要:的MySQL 5.7.7歸類「hebrew_general_ci」是無效字符集「utf-8」
character_set_client hebrew
character_set_connection hebrew
character_set_database hebrew
character_set_filesystem hebrew
character_set_results hebrew
character_set_server hebrew
character_set_system hebrew
character_sets_dir C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
什麼MYSQL 5.7.7寫:不能與以下變量打開的MySQL 5.7.7 : 'hebrew_general_ci' 是無效字符集 'utf-8'
我會得到什麼:
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
character_sets_dir C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
軟件:MySQL的5.7.7
操作系統:WIN 7 64位
我做了什麼: 1.改變了所有的數據在C:\ ProgramData \ MySQL的\ MySQL服務器5.7 \ MY.INI配置文件:
[client]
no-beep
default-character-set = hebrew
[mysql]
default-character-set=hebrew
[mysqld]
init_connect='SET collation_connection = hebrew_general_ci'
character-set-server = hebrew
collation-server = hebrew_general_ci
init-connect='SET NAMES hebrew'
init_connect='SET collation_connection = hebrew_general_ci'
2.冉服務器從CMD與:
mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini"
3. CMD運行的服務器
MySQL 5.7.7 collation 'hebrew_general_ci' is not valid for character set 'utf8'
** 4時得到了錯誤的信息。主要問題是沒有發生任何配置變化**
嘗試僅保留'字符集服務器......'和'整理server..'並添加'init_connect ='SET collation_connection是= hebrew_general_ci,名字hebrew'' – Mihai
另外補充或取消註釋這些行'character_set_client = hebrew character_set_connection = hebrew character_set_results = hebrew '並重新啓動 – Mihai