Archive for August, 2008

MySQL: ERROR 1267 (HY000): Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation ‘=’

Thursday, August 7th, 2008

I have never, ever seen this before. I don't even know how the table was created with a different collation. However, I had all my other tables created with the character set utf8, no collation specified. I had to convert the second table to match the character set. ...

Executing MySQL queries within VIM

Friday, August 1st, 2008

I haven't been using vim for very long, but I've gotten over the initial learning curve of getting used to the different editing modes. With some help from the guys in #vim on irc.freenode.net, I managed to get this gem: map <C-d> :call SwitchDB()<CR> :function SwitchDB() : ...