SQLYog乱码

安装SQLYog后连接mysql,提示10060错误,解决方法:关闭防火墙

相关命令:

开放防火墙端口,添加需要监听的端口:

/sbin/iptables -l INPUT -p tcp --dport 3306 -j ACCEPT

保存设置

/etc/init.d/iptables save

查看状态

/etc/init.d/iptables status

临时关闭防火墙服务

service iptables stop

开启防火墙服务

service iptables start

开机不再启动防火墙服务

chkconfig iptables off

这些适用于CentOS环境

=================================

连接成功后查询SQLYog 中文显示乱码,原因:mysql字符集和SQLYog 不一致

查看mysql 创建时的字符集:

show create table tbName;

然后将SQLYog 字符集改成一致的就行了。

set names 'latin1';

更多参考:

http://blog.csdn.net/ACMAIN_CHM/article/details/4174186

猜你喜欢

转载自930171379.iteye.com/blog/2391676