一.can‘t connect to MySql server on ‘47.93.X.X’ 这是因为mysql端口被防火墙拦截,需用linux执行如下指令: 1.#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 2.#/etc/rc.d/init.d/iptables save 3.#/etc/init.d/iptables restart 4.查看端口是否开启#/etc/init.d/iptables status 二.1130-h…
内容参考网上的文章,此处只做记录. 一.can‘t connect to MySql server on ‘192.168.X.X’ 这是因为mysql端口被防火墙拦截,需用linux执行如下指令:(已试过可以) 1.#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 2.#/etc/rc.d/init.d/iptables save 3.#/etc/init.d/iptables restart 4.查看端口是否开启#/etc/init…
1.MySQL端口 因为上一篇文章我就已经给MySQL新建了一新用户,且赋予了远程连接数据库的所有权限(GRANT ALL PRIVILEGES ON *.* TO 'newuser' @ '%' IDENTIFIED BY 'newpass' WITH GRANT OPTION;) 且错误是 Cant't connect to MySQL.... 而不是1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL se…
解决阿里云MySQL远程连接不上的问题:step1:1.修改user表:MySQL>update user set host = '%' where user = 'root'; 2.授权主机访问:MySQL>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的密码' WITH GRANT OPTION; 3.刷新权限:MySQL>FLUSH PRIVILEGES;4.退出:MySQL>EXIT; step2:查看端…