[horde] PDOException: SQLSTATE[HY000] [2019] Can't initialize character set utf-8 (path: /usr/share/mysql/charsets/)

Jan Schneider jan at horde.org
Sat Apr 9 14:31:23 UTC 2011


Zitat von MarkatOSI <buy at mark.net>:

> I receive this error when trying to save the DB config from the horde
> configuration screen
>
> Centos 5.5
> I'm using php 5.3.6
> Mysql 5.5.10 and utf8 is the default character set for the server and
> database and utf8 is defined
> in the /usr/share/mysql/charsets/Index.xml file
>
> Could not instantiate PDO with DSN
> "mysql:persistent=;protocol=unix;charset=utf-8;ssl=;phptype=mysql;dbname=horde;unix_socket=/var/lib/mysql/mysql.sock".
> PDOException: SQLSTATE[HY000] [2019] Can't initialize character set utf-8
> (path: /usr/share/mysql/charsets/)

Does it work if you set the charset to utf8 instead of utf-8 in the DB  
configuration? Shouldn't make a difference, but it's worth a try.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list