note 93508 modified in mysqli.connect by thiago

From: Date: Wed, 14 Oct 2009 17:33:48 +0000
Subject: note 93508 modified in mysqli.connect by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161729@lists.php.net to get a copy of this message
If you get an error like Can't connect to MySQL server on 'localhost' (10061) and you use named pipes/socket connections (or aren't sure how you installed the MySQL server) try the following connect command: <?php mysqli_connect('.', $user_name, $password, $database_name, null, 'mysql'); ?> The '.' as hostname is absolutely necessary when using named pipes. 'localhost' won't work. 'mysql' is the standard name for the pipe/socket. --was-- If you get an error like Can't connect to MySQL server on 'localhost' (10061) and you use named pipes/socket connections (or aren't sure how you installed the MySQL server) try the following connect command: mysqli_connect('.', $user_name, $password, $database_name, null, 'mysql'); The '.' as hostname is absolutely necessary when using named pipes. 'localhost' won't work. 'mysql' is the standard name for the pipe/socket. http://php.net/manual/en/mysqli.connect.php

« previous php.notes (#161729) next »