0

I have php code running fine from the server. but if i use any mysql functions e.g.

mysql_connect()

, the server does not render the page. it keeps on "waiting for localhost...". what could be the problem.

Edited by roottybrian: addition

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by roottybrian
0

First, check your mysql server is running or not like @ardav mentioned?
Second, how are you using mysql_connect() function in your php? mysql_connect() needs three arguments (host, username, password).

Check the above facts and post again if your problem still keep going.

0

Thanks guys, i found the problem. Mysql was running but the port i used to connect to it was different. so the port could not respond to a mysql request since it's not for mysql

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.