腳本檔案是utf-8,mysql資料庫utf-8;
運行mysql檔案,在navicat打開,中文注釋亂碼
解決方法如下:
5.5和5.6版本修復中文亂碼后,運行mysql洗掉腳本,資料庫存在遺漏的資料表
(遺漏資料表中存在主外鍵關系)
1.查詢資料庫的編碼格式
show variables like 'character_set_%';
show variables like ‘character%’;

2.修改my.nin組態檔

3.重啟mysql服務


轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/12661.html
標籤:MySQL
上一篇:mysql事務隔離級別介紹和演示
下一篇:MySQL修改時區的方法小結
