On Wed, 5 Aug 2009, Thomas, Maxime wrote: > We're kind of stuck here with a litlle problem with the ezcDatabase > components. Our web hosting company configured the mysql.ini and set > it in a special place like /tmp/mysql.sock. There is the same setting > in the php.ini. > > However, at the execution time, we have an exception during the > instanciation of the db because the file cannot be found in the > /var/lib/mysql.sock. > > It seems that there's somewhere where this settings is overriden. > > We use the dsn style to create the db instance and the socket is not > provided. I guess the components get its own settin and not the > php.ini setting.
We don't override anything, but a DSN in the form of "mysql://username:passw...@host/database_name?socket=/tmp/mysql.sock" should work, if not, you can provide an array like is mentioned in the docs here: http://ezcomponents.org/docs/api/trunk/Database/ezcDbFactory.html#create with kind regards, Derick -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components