Guest Posted June 1, 2006 Posted June 1, 2006 Warning: mysql_connect(): Unknown MySQL Server Host 'www.mysite.com' (2) in /home/www/catalog/includes/functions/database.php on line 19 Unable to connect to database server! Any help greatly appreciated on this one, domain was moved to a new server and new ip address asigned to see if it would cure this error, same error occured after 30 secs of move!
ozcsys Posted June 1, 2006 Posted June 1, 2006 Warning: mysql_connect(): Unknown MySQL Server Host 'www.mysite.com' (2) in /home/www/catalog/includes/functions/database.php on line 19 Unable to connect to database server! Any help greatly appreciated on this one, domain was moved to a new server and new ip address asigned to see if it would cure this error, same error occured after 30 secs of move! You need to edit you configure.php files and change the database info to match your new server and database info. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Jan Zonjee Posted June 1, 2006 Posted June 1, 2006 Warning: mysql_connect(): Unknown MySQL Server Host 'www.mysite.com' (2) in /home/www/catalog/includes/functions/database.php on line 19 Unable to connect to database server! Perhaps try 'localhost' for the MySQL server in includes/configure.php?
Guest Posted June 1, 2006 Posted June 1, 2006 Perhaps try 'localhost' for the MySQL server in includes/configure.php? thanks I will give that a try. You need to edit you configure.php files and change the database info to match your new server and database info. The erroers were there before on the old server, they moved the site to a new server to see if it would cure the error. I just read it could also be overloaded servers causing it? Also ssl no longer works, checkout_shipping wont load any ideas?
ozcsys Posted June 1, 2006 Posted June 1, 2006 thanks I will give that a try. You need to edit you configure.php files and change the database info to match your new server and database info. The erroers were there before on the old server, they moved the site to a new server to see if it would cure the error. I just read it could also be overloaded servers causing it? Also ssl no longer works, checkout_shipping wont load any ideas? I have not seen that particular error caused by an overloaded database server. The only things I have seen to cause it are either the database info in the configure.php file is incorrect or the database user not being assigned to the database. If you are getting a database error how are you getting an error with your checkout shipping page? Have you installed an ssl cert at the new location or was it not working at the old one? The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
paddo Posted June 4, 2006 Posted June 4, 2006 :thumbsup: Perhaps try 'localhost' for the MySQL server in includes/configure.php? I had the same problem and went into admin on my local server, reconfugred my details in Oscommerce and now its fine. I hope this works for you
paddo Posted June 4, 2006 Posted June 4, 2006 Perhaps try 'localhost' for the MySQL server in includes/configure.php? I had the same problem and went into admin on my local server, reconfugred my details in Oscommerce and now its fine. I hope this works for you
Aceicol Posted June 20, 2006 Posted June 20, 2006 Warning: mysql_connect(): Unknown MySQL Server Host 'www.mysite.com' (2) in /home/www/catalog/includes/functions/database.php on line 19 Unable to connect to database server! Any help greatly appreciated on this one, domain was moved to a new server and new ip address asigned to see if it would cure this error, same error occured after 30 secs of move! I've had this same problem for the past few days. I cured it by putting in the IP Address of the database instead of localhost. Not sure why but it works fine now. It had also been working fine for about 18 months by using the localhost. I reckon my hosts changed something but they won't admit it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.