Jump to content

Error in MySQL


Walker22

Recommended Posts

I'm getting this error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxx'@'localhost' (using password: NO) in /home/xxx/public_html/classes/db/db.php on line 37

Access denied for user 'xxx'@'localhost' (using password: NO)

 

It appears that there is no communication with the database. Can anyone shed any light on this? I need help asap.

 

prepaidcardstatus

Link to comment
Share on other sites

1 hour ago, Walker22 said:

It appears that there is no communication with the database. Can anyone shed any light on this?

It is communicating with the database fine - you would get a different error message if that was the case

1 hour ago, Walker22 said:

Access denied for user 'xxx'@'localhost'

This means either the database user and / or the password are incorrect.  You should check these values and then manually update them in includes/global.inc.php

Link to comment
Share on other sites

When it says "(using password: NO)", that means that of all the things that PHP is sending over to the database server in the connection string, the password isn't one of them. So, in /includes/global.inc.php, make sure there is a statement:

$glob['dbpassword'] = "something";

Check to see if there have been any edits made to the files in the /classes/db/ folder.

Link to comment
Share on other sites

  • 3 months later...

If the database is on the same machine as is CubeCart, then using the local loopback IP address will be "127.0.0.1". Note the missing period.

Note also, the database Users access list will specify if "127.0.0.1" must be used, if "localhost" must be used, or if either can be used with this user.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...