1. vi /etc/mysql/my.cnf

#bind-address = 127.0.0.1

2. GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;

3. /etc/init.d/mysql restart

 

posted on 2015-04-28 17:38  weRtogether  阅读(88)  评论(0编辑  收藏  举报