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

MarkatOSI buy at mark.net
Sat Apr 9 14:11:34 UTC 2011


I tried it with PHP 5.2.17 and it worked just fine



MarkatOSI wrote:
> 
> 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/)
> 
>  1. require() /var/www/html/horde/admin/config/index.php:321
>  2. Horde_Notification_Handler->notify()
> /var/www/html/horde/templates/admin/menu.inc:16
>  3. Horde_Notification_Handler_Decorator_Alarm->notify()
> /usr/share/pear/Horde/Notification/Handler.php:317
>  4. Horde_Core_Factory_Alarm->create()
> /usr/share/pear/Horde/Notification/Handler/Decorator/Alarm.php:61
>  5. Horde_Injector->getInstance()
> /usr/share/pear/Horde/Core/Factory/Alarm.php:53
>  6. Horde_Injector->createInstance()
> /usr/share/pear/Horde/Injector.php:248
>  7. Horde_Injector_Binder_Factory->create()
> /usr/share/pear/Horde/Injector.php:213
>  8. Horde_Core_Factory_DbBase->create()
> /usr/share/pear/Horde/Injector/Binder/Factory.php:111
>  9. Horde_Core_Factory_Db->create()
> /usr/share/pear/Horde/Core/Factory/DbBase.php:17
> 10. Horde_Core_Factory_Db->createDb()
> /usr/share/pear/Horde/Core/Factory/Db.php:88
> 11. Horde_Db_Adapter_Base->__construct()
> /usr/share/pear/Horde/Core/Factory/Db.php:151
> 12. Horde_Db_Adapter_Pdo_Mysql->connect()
> /usr/share/pear/Horde/Db/Adapter/Base.php:143
> 13. Horde_Db_Adapter_Pdo_Base->connect()
> /usr/share/pear/Horde/Db/Adapter/Pdo/Mysql.php:63
> 
> 

-- 
View this message in context: http://old.nabble.com/PDOException%3A-SQLSTATE-HY000---2019--Can%27t-initialize-character-set-utf-8-%28path%3A--usr-share-mysql-charsets-%29-tp31354285p31359298.html
Sent from the Horde - General mailing list archive at Nabble.com.



More information about the horde mailing list