Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql still timing out?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
help,
i have just installed php and mysql when i try and connect to the database i have made (with phpmyadmin) using

mysql_connect('localhost', 'dave','pass' );
mysql_select_db('sitestats');

the browser will just time out and not find the page!!. It seems to work the first time i try it after booting up the machine but then wont work after that!! it seems to timeout if it trys to open any page with a .php extension.
so i dont think it is a database or 'my sql' prob

any ideas would be much appreciated..thanks

dave
 
Other clues required.
What webserver are you using (apache IIS etc)
What versions of PHP, MySQL.
Have you added username and password to MySQL, and reloaded the grant tables?
just a few to start the ball rolling... ***************************************
Party on, dudes!
 
im using

winmysqladmin ver 1.0 with windows XP

php is 4.0.4pl1 ..pass is ok..

...it will work the first time and update the table but if i try it again it wont do anything-regardless of what is in the code..like for example if i change the password it makes no difference. but if it was the wrong pass the first time..it wont connect.!!

What do you mean by 'grant tables'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top