Author Topic: Alternate MySQL socket  (Read 8171 times)

Offline engco431

  • Newbie
  • *
  • Posts: 1
Alternate MySQL socket
« 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!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Alternate MySQL socket
« Reply #1 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 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

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Alternate MySQL socket
« Reply #2 on: August 12, 2010, 07:43:00 AM »
Check DSN examples here: Manual :: The Data Source Name