Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

database.php error


Guest

Recommended Posts

when trying to view my catalog I get the following error:

 

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'ways2wellnesscom' (1) in /home/.helmut/joelski/ways-2-wellness.com/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

I've reinstalled a few times and still keep getting the same error. my database settings are correct as far ask I know because when installing it connects fine.

 

any help would be great, thanks!

Link to comment
Share on other sites

when trying to view my catalog I get the following error:

 

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'ways2wellnesscom' (1) in /home/.helmut/joelski/ways-2-wellness.com/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

I've reinstalled a few times and still keep getting the same error. my database settings are correct as far ask I know because when installing it connects fine.

 

any help would be great, thanks!

Hello Joel, check you permissions to be sure the files can be accessed.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

when trying to view my catalog I get the following error:

 

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'ways2wellnesscom' (1) in /home/.helmut/joelski/ways-2-wellness.com/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

I've reinstalled a few times and still keep getting the same error. my database settings are correct as far ask I know because when installing it connects fine.

 

change this line in your /includes/configure.php file to localhost, like this :

define('DB_SERVER', 'localhost');

 

If this doesn't work - try this :

define('DB_SERVER', '208.97.156.22');

 

If this doesn't work - ask your host for the connection string or IP addrses to connect to your mySQL server.

 

david

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...