After installing SQLYog, connect to mysql, prompting 10060 error, the solution: turn off the firewall
Related commands:
Open the firewall port and add the port that needs to be monitored:
/sbin/iptables -l INPUT -p tcp --dport 3306 -j ACCEPT
Save Settings
/etc/init.d/iptables save
View status
/etc/init.d/iptables status
Temporarily turn off the firewall service
service iptables stop
Enable firewall service
service iptables start
Firewall service no longer starts at boot
chkconfig iptables off
These are for CentOS environment
=================================
After the connection is successful, the query of SQLYog Chinese displays garbled characters, the reason: the mysql character set is inconsistent with SQLYog
View the character set when mysql was created:
show create table tbName;
Then change the SQLYog character set to be consistent.
set names 'latin1';
More references:
http://blog.csdn.net/ACMAIN_CHM/article/details/4174186