修改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