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

 

posted @ 2018-09-15 16:21  saintdingtheGreat  阅读(2126)  评论(0编辑  收藏  举报