Computers/Linux

MySQL connection error

Dr.TeKtOn 2006. 3. 14. 03:59
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)

Check where the 'mysql.sock' is, and change 'mysql.default_socket' setting in the /etc/php.ini file.

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = /tmp/mysql.sock

Restart the webserver daemon.