Walker22 Posted April 16, 2021 Share Posted April 16, 2021 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 More sharing options...
havenswift-hosting Posted April 16, 2021 Share Posted April 16, 2021 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 More sharing options...
bsmither Posted April 16, 2021 Share Posted April 16, 2021 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 More sharing options...
bsmither Posted July 21, 2021 Share Posted July 21, 2021 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.