Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database Connection Problem


MattMorganDesigns

Recommended Posts

Posted

I am getting:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'one80_admin'@'localhost' (using password: YES) in /home/one80/public_html/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

Anyone have similar issues or know what the work-around is?

Thanks

Posted

IP address? osc does not need nor parse your ip address to the db server. The error normally indicates the following:

the database (Mysql) could not be found on 'localhost'; or

the user name is incorrect; or

password incorrect. or

a combination of the above.

 

Those are the params line 19 needs, but IP address is not one of them.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

I just changed servers, and it might be one of two things that I had happen - The MySql used the site name, or rather the user name to access the database, did that change when you moved the site? Did your directory path change? Mine went from home2 to home. Go into your current sites Cpanel and see if the database is there, and what the name of it is. Hope that helps...

Archived

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

×
×
  • Create New...