Jump to content

Error in MySQL


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

Edited by Walker22
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...