Jump to content

Error 1045 Access Denied - Newbie Error


GeekyGirl

Recommended Posts

I wanted to secure my MySQL database so under the administration section, I added a password for logging into the server.  Now, when I try to enter, I get the following error:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

I did a search on the forum and found this reply:

[color=red][i]Add the -p command after -u root

So its
mysql -u root -p
When you hit return it should now prompt for the password for the root user.[/i][/color]

This is where I'm really a newbie when it comes to PHP, MySQL, PHPMyAdmin, etc.  What file am I changing this in?

I installed WAMP using the wampserver.com package and am using PHPMyAdmin to set up my database.  I tried looking at the My.ini and PHP.ini but nothing seemed to be what I was looking for.

Can someone please direct me on where I make this change so I can get back into my database?

Thanks
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.