Jump to content

cannot connect to server


witham

Recommended Posts

Hi I hope someone can help I have been searching the net for hours looking for a solution. I have mysql running through xampp on a laptop running windows vista.

I also have the identical setup on a pc running xp which works perfectly. My issue is that whilst I can connect to phpmyadmin through localhost I cannot connect ant databases that have been imported from the xp setup.

The error I get is below, I have tried to echo the Host and password ect but they don't appear?

 

 

Could not connect to database server:

\n"); // mysql_select_db selects a database to use on the database server //pointers to by $dblink // the @ sign before the command supresses any error messages @mysql_select_db ('weld' , $dblink) or die ("

Could not connect to the database
\n"); echo 'Host: '.$dbhost.'
'; echo 'Username: '.$dbuser.'
'; echo 'Password: '.$dbpass.'
'; echo 'Database: '.$dbname; ?>

Error Processing Query

 

As the php works perfectly on xp setup I can't determine where the problem is??

Link to comment
https://forums.phpfreaks.com/topic/203281-cannot-connect-to-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.