faqts : Computers : Programming : Languages : PHP : Installation and Setup : Databases

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 73 people (22%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

Why can't I connect to a remote mysql server ( error : " Cannot connect to mysql server on localhost " but the mysql server isn't on localhost)

May 1st, 2000 11:54
Henrik Hansen, Tim Truman,


You have to add a hostname to your mysql_connect then, like this:
$bla = mysql_connect("hostname", "user", "password");