- #mysql>grant all on *.* to user@ip_addr identified by 'userpwd';
- #netstat -tlnp |grep mysql
- tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 9929/mysqld
解决方法是:
注释掉配置文件中的bind_address
- #
-
# Instead of skip-networking the default is now to listen only on
-
# localhost which is more compatible and is not less secure.
- #bind-address = 127.0.0.1