取消SSH链接//键入密码,链接上mysql
mysql -u root -p
USE MYSQL;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; //%:表示任何一台机使用密码都可以登入,也可以传入IP指定某一台机有权限登入
flush privileges;
//恢复SSH链接
delete from user where host='%';
flush privileges;
转载于:https://www.cnblogs.com/zhaoxiaowei/p/10737644.html
相关资源:Mysql SSH隧道连接使用的基本步骤