页面载入中...
首页 » Mysql

utf8_general_ci,utf8_unicode_ci

今天查询时出现一点问题:

mysql> SELECT col FROM tbl1 a LEFT JOIN tbl2 b ON a.name= b.name;
1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='

发现两个表的Collation不一样,不过改为一样还是不能查询(暂时还不知道为什么),不过解决办法已经有了:

SELECT col FROM tbl1 a LEFT JOIN tbl2 b ON CONVERT(a.name USING utf8) = CONVERT(b.name USING utf8…

标签:

Mysql: is not allowed to connect to this MySQL server解决方法

刚才发神经想回头用用mysql。结果很糗很郁闷…

链接时报is not allowed to connect to this MySQL server错误

于是找了一个比较简单的方法:

进入mysql数据库,更新user表中用户名为root的host字段值为’%’,重启一下mysql就OK.

标签: