【原创】宝塔环境设置 MySQL 远程连接

宝塔——数据库

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

发表回复

电子邮件地址不会被公开。必填项已用 * 标注