Jump to content

Access Denied. Problem with /classes/db/db.php


Guest zenphilip

Recommended Posts

Guest zenphilip

EDIT:RESOLVED

The shop has been up and running for years, but last night I went into my host's mysql configuration and changed the 'Description' to something more meaningful/accurate. I didn't change the dbname or anything like that, only the description.

but visiting the site, I get:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dbo234035107'@'212.227.118.8' (using password: YES) in /homepages/14/d115513559/htdocs/zen/classes/db/db.php on line 41

Access denied for user 'dbo234035107'@'212.227.118.8' (using password: YES)





looking at file db.php, I see




mysql_connect($glob['dbhost'], $glob['dbusername'], $glob['dbpassword'])





I would have thought in the place of 'dbhost' etc should be the actual values... so I entered the actual values and uploaded the file, but I then just get another error. 




Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

What do you think?

Thanks

Link to post
Share on other sites

Guest zenphilip

In which file can I find what password and database name are being used to connect to the database? Maybe that's the key, perhaps I changed the password without knowing it.

Link to post
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.

×
×
  • Create New...