取消SSH链接
//键入密码,链接上mysql
mysql -u root -p

Mysql取消SSH链接和恢复SSH链接-LMLPHP

 USE MYSQL; 

Mysql取消SSH链接和恢复SSH链接-LMLPHP

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;  //%:表示任何一台机使用密码都可以登入,也可以传入IP指定某一台机有权限登入 
Mysql取消SSH链接和恢复SSH链接-LMLPHP
 flush privileges; 
Mysql取消SSH链接和恢复SSH链接-LMLPHP
Mysql取消SSH链接和恢复SSH链接-LMLPHP

//恢复SSH链接

delete from user where host='%';

Mysql取消SSH链接和恢复SSH链接-LMLPHP

 flush privileges; 

Mysql取消SSH链接和恢复SSH链接-LMLPHP

Mysql取消SSH链接和恢复SSH链接-LMLPHP

05-23 17:37