Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: mysql_connect


mtarantjr

Recommended Posts

Posted

I have an store with oscommerce correctly installed and now I created a new store and sent a copy of the old store to the new domain, I created a DB importing the data from the old DB, I make the alterations in the config.php inside includes but when I try to enter the admin, I receive the warning message bellow:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/myplace/lojaclone/includes/functions/database.php on line 19

Unable to connect to database server!

 

Any Tip?

Posted
I have an store with oscommerce correctly installed and now I created a new store and sent a copy of the old store to the new domain, I created a DB importing the data from the old DB, I make the alterations in the config.php inside includes but when I try to enter the admin, I receive the warning message bellow:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/myplace/lojaclone/includes/functions/database.php on line 19

Unable to connect to database server!

 

Any Tip?

 

Hi

well that reads like oscommerce can not connect to your database.

Did you make sure that you have the correct password for the database, and

what about the database name, it mostlikely changed when you created a new MySQL Database, and

do you have changed the root to your new database as well?

 

What is in the php-file "database.php" in the folder functions on line 19 ? check it out and you might have a clue as well.

 

Hope I could help a bit.

 

Rich

Archived

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

×
×
  • Create New...