java程序员-http://www.it-ebooks.info/

年轻的我,脚踩大地,仰望天空,路还很长....

博客园 首页 新随笔 联系 订阅 管理

======================================================

update user set host = '%' where user = 'root';

grant all on *.* to root@'%'

FLUSH PRIVILEGES

vim /etc/mysql/mysql.conf.d/mysqld.cnf 

      bind-address           = 127.0.0.1  注释掉这一行

======================================================

 ubuntu切换root:

sudo -i 

======================================================

posted on 2016-02-21 03:28  gstsyyb  阅读(156)  评论(0编辑  收藏  举报