调试远程的时候,覆盖了本地的权限。导致  本地无法登陆系统表。  远程连接上mysql  执行以下命令恢复。

 

 

恢复root  本地管理权限  使用空密码

grant all on *.* to root@'localhost' identified by password '' with grant option;

 

root远程 也可以连接  使用空密码

grant all on *.* to root@'%' identified by password '' with grant option;

 

posted on 2015-12-24 19:37  日记本的回忆  阅读(243)  评论(0编辑  收藏  举报