Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: mysql_connect(): Access denied for user 'nobody'@'localhost' (using password: NO)


stephanon

Recommended Posts

Posted

I have reinstalled my shop and try to open the index page but get the following error :

 

Warning: mysql_connect(): Access denied for user 'nobody'@'localhost' (using password: NO) in .../catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

What is wrong ?

Posted
I have reinstalled my shop and try to open the index page but get the following error :

 

Warning: mysql_connect(): Access denied for user 'nobody'@'localhost' (using password: NO) in .../catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

What is wrong ?

Check that the username and database name is correct in the two includes/configure.php files.

  • 6 months later...
Posted

HI i have the same problem,

 

Did you fix this error?

 

And could it only be the user name.

 

when i change the user name?

it was blank had '' and i just put my

'username'

 

or am i supposed to put a variable in there.

Posted

Open /admin/includes/configure.php and /includes/configure.php

 

find the name of the user name, database and password.

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'aaa');

define('DB_SERVER_PASSWORD', 'bbbb');

define('DB_DATABASE', 'ccc');

 

Then use phpmy admin to find your database name, check the user has the correct priviliges to access the db and if necessary reset the password.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...