登录Mysql mysql -u用户 -p 修改密码 # 修改root密码 set password for root@localhost = password('密码'); 开启远程访问 # 设置root用户可以远程访问 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; # 设置root用户远程登录的密码 set password for root@'%' = password('密码'); 刷新配置…