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.

Recommended Answers

All 3 Replies

Member Avatar for diafol

Is your mysql server running?

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.