note 93569 modified in mysqli.mysqlnd by danbrown

From: Date: Sat, 07 Nov 2009 19:00:57 +0000
Subject: note 93569 modified in mysqli.mysqlnd by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162545@lists.php.net to get a copy of this message
For those who manually compiled MySQL, the default mysqlnd settings may results in error. Your mysql_error() function may give you this message: --------------------------- No such file or directory (trying to connect via unix:///tmp/mysql.sock) --------------------------- This is because your manually compiled MySQL has its own place for socket. You need to provide PHP a reference for an appropriate mysql socket. That means you need to edit php.ini and add a section like this: --------------------------- [mysql] mysql.default_socket="/your/path/to/mysql.sock" --------------------------- --was-- For those who manually compiled MySQL, the default mysqlnd settings may results in error. Your mysql_error() function may give you this message: --------------------------- No such file or directory (trying to connect via unix:///tmp/mysql.sock) --------------------------- This is because your manually compiled MySQL has its own place for socket. You need to provide PHP a reference for an appropriate mysql socket. That means you need to edit php.ini and add a section like this: --------------------------- [mysql] mysql.default_socket="/your/path/to/mysql.sock" --------------------------- http://php.net/manual/en/mysqli.mysqlnd.php

« previous php.notes (#162545) next »