mysql问题,ERROR 1130
一直使用本机的mysql,
将数据库迁移到服务器上,报错:
ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server。
是因为Mysql默认安装只运行本机进行访问。
需要修改一下配置即可:
mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;mysql>flush privileges;