MySQL Forums
Forum List  »  General

Re: access denied ''@'localhost' error
Posted by: Scott Nemes
Date: July 09, 2013 02:45PM

According to the error message, it is attempting to login with no user (anonymous) from localhost.

Are you using the same DB connection to write the record as you used to create the database and table? Or did you create the database and table manually outside of PHP?

Either way, check your DB connection in PHP to make sure the credentials are correct. If they are correct, then verify that the user has the permissions you need for your new "hydi" database.

--
Scott Nemes
MySQL DBA

http://www.linkedin.com/in/scottnemes
http://www.twitter.com/ScottNemes

Options: ReplyQuote


Subject
Written By
Posted
Re: access denied ''@'localhost' error
July 09, 2013 02:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.