修改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;
原文地址:https://www.cnblogs.com/saintdingspage/p/9651257.html