Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.