执行命令 sudo vi /etc/mysql/my.cnf 在[client] 下 添加 default-character-set = utf8 在[mysqld]下添加 character-set-server = utf8 远程连接mysql配置 进入mysql命令行模式 执行命令 grant all privileges on *.* to root@&q
update mysql.user set password=PASSWORD('123456') where user='root'grant all privileges on *.* to root@'%' identified by "root";
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号