宝塔——数据库
- 修改 root 密码
- SSH 工具连接服务器,
mysql -uroot -ppassword update user set Host='%' where User='root';或者grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
宝塔——数据库
mysql -uroot -ppasswordupdate user set Host='%' where User='root'; 或者 grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;