修改mysql5.7數據表字符集編碼的命令


查看表中字符集的命令

show variables like '%char%'

 

更改數據庫中數據表的字符集靠譜命令,親測可行,在workbench和phpmyadmin上都通過

alter table entries_mx convert to character set utf8 COLLATE utf8_general_ci;

show variables like 'character%'; 

update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';

flush privileges;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM