[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 15:10:47 UTC 2011


Zitat von MarkatOSI <buy at mark.net>:

> Jan Schneider wrote:
>>
>>
>> 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.
>>
> Just tried your recommendation on the other server with php 5.3.6 and it
> worked with utf8
> versus utf-8. Just to double check i tried it again with utf-8 and that
> didn't work

Please try this patch:
https://github.com/horde/horde/commit/59f77aac265851fd3445696fb601e720f2923945

Jan.

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



More information about the horde mailing list