Zend Server CE | PDO | ubuntu 9.10 | /tmp/mysql.sock

You are using PDO and Zend Server CE and Ubuntu 9.10

You have a little problem?

This is The solution (thanks to @DwebConsulting).

  1. sudo service mysql stop
  2. sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
  3. sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
  4. sudo vim /etc/mysql/my.cnf
    1. replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
  5. sudo vim /etc/mysql/debian.cnf
    1. replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
  6. sudo service mysql start

in the Zend Server CE admin (http://localhost:10081/ZendServer/) > Server Setup > Directives >
Search for default_socket and in mysql and mysqli remove the content of the textarea (empty value => default value used instead)
Then click Save Changes and click Restart PHP

It will work until Zend Server CE bug is fixed (release 5.0).

1 comment to Zend Server CE | PDO | ubuntu 9.10 | /tmp/mysql.sock

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>