John Comerford schrieb: > Hi Sebastian, > > I did read somewhere that sockets was not valid for windows, and > '/tmp/mysql.sock' doesn't resolve to anything on my machine. But I have > tried the following commands: > > $mysqli = new mysqli(".", $username,$password, $database); > or > $mysqli = new mysqli(".", $username,$password, $database,null); > > and I get the following error: > > Can't open named pipe to host: . pipe: MySQL (2)
yes, 'MySQL' is default name of the pipe, used by the libaray > but when I include the "/tmp/mysql.sock" parameter it works fine. I was > thinking that maybe I have things configured in such a way that MySQL is > using "/tmp/mysql.sock" as the pipe name. I am going to do some testing > this evening to see if my suspicion is correct. yes: > Note: you can specify a pipe name on the advanced network page, if required. possible this is et with the soccket paramter in my.cnf > [mysqld] > #port = 3306 > socket = /tmp/mysql.sock -- Sebastian Mendel www.sebastianmendel.de -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]