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).
- sudo service mysql stop
- sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
- sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
- sudo vim /etc/mysql/my.cnf
- replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
- sudo vim /etc/mysql/debian.cnf
- replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
- 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).



[...] This post was mentioned on Twitter by scips, Frédéric Dewinne. Frédéric Dewinne said: RT @scips: New blog post: Zend Server CE | PDO | ubuntu 9.10 | /tmp/mysql.sock #zend #ce #pdo #ubuntu http://tinyurl.com/y9hfh34 [...]