Thanks Sebastian, that did the trick.
The full command I use is:
$mysqli = new mysqli(".", $username,$password, $database,null,"/tmp/mysql.sock");

Regards,
JC

Sebastian Mendel wrote:
John Comerford schrieb:
Hi Folks,

I have a database running on Window XP, that I want to disable network
connections to and enable 'named pipes'. I am running MySQL 5.0.27 and my.ini looks like...

[...]

I can connect to the DB using the GUI tools if I set my pipe name to
'/tmp/mysql.sock' using the login dialog box.
[...]

mysql_connect('.', ...);

you have to a dot as host: '.'



Reply via email to