28
12 月
2012
给mysql添加根目录远程权限
默认情况下,MySQL之允许本地登录,需要修改/etc/mysql/my.cnf文件:
注释这一行:
bind-address=127.0.0.1 ==> #bind-address=127.0.0.1
对于需要远程登录的用户执行如下命令:
mysql> GRANT ALL PRIVILEGES ON *.* TO root@”%” IDENTIFIED BY “yourpasswd”;
mysql> flush privileges;