Roundcube Community Forum

Release Support => Pending Issues => Topic started by: engco431 on August 11, 2010, 12:17:49 PM

Title: Alternate MySQL socket
Post by: engco431 on August 11, 2010, 12:17:49 PM
My hosting provider uses an alternative socket for mysql 5, as they still have legacy support going for 4.

The socket is specified as "/tmp/mysql5.sock"

For every single other thing I've ever used, the format "localhost:/tmp/mysql5.sock" (less the quotes) has worked, but from what i can tell, the format used here ("db_provider://user:password@host/database") means the forward slash is causing the socket info to be treated as the db name.

doesn't work.

anyone know where or if this info is broken down into individual user, pass, db, host values so I might edit where this is parsed and make it work?  Or another way to specify the socket in the config file?

Thanks!
Title: Alternate MySQL socket
Post by: SKaero on August 12, 2010, 02:21:00 AM
I looked around but didn't fine much of anything on it, there is an old ticket about it #1333787 (mysql socket) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1333787) but RC doesn't even use PEAR::DB any more (it uses PEAR::MDB2, PEAR::DB successor) PEAR::MDB2 does support custom mysql sockets so I would suggest opening a new ticket on the trac Roundcube Webmail (http://trac.roundcube.net/)
Title: Alternate MySQL socket
Post by: alec on August 12, 2010, 07:43:00 AM
Check DSN examples here: Manual :: The Data Source Name (http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php)