Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Forgot mysql ROOT password

  1. #1
    Wanch Guest

    Forgot mysql ROOT password

    It isn't on a machine that clients use but on a local machine I have for messing around with. The problem is I can't remember what the root user password is for MySQL.

    Code:
    # mysql -u root -p
    
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    Anyone know how to reset this password?

  2. CODECALL Circuit advertisement

     
  3. #2
    Jordan Guest
    Ah, I've been there before. MySQL Manual has a great reference on how to do it for both Linux and Windows:

    MySQL :: MySQL 5.0 Reference Manual :: B.1.4.1 How to Reset the Root Password

    Let me know if you need any help.

  4. #3
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    That's bad mate. Did you solve it?

  5. #4
    SexYLinuX Guest
    Don't you think that having the functionality of resetting the password can compromise security?

  6. #5
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    I think it can but if someone can gain root access to your system your security is already gone anyway.

  7. #6
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    True. Because that means that they already hacked you...

  8. #7
    SexYLinuX Guest
    Hmm.. no I mean if the hack the database server, can't they hack the root account and gain root access on the database?

  9. #8
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    I've got no idea if that is possible.

  10. #9
    HappyUser is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    40
    Rep Power
    0
    Unless you hack the root user I don't think you will be able to hack his databases....right?

  11. #10
    Jordan Guest
    In MySQL you set where people are allowed from. Most users are set to only access MySQL via localhost. Unless you have setup bad security permissions and have allowed users to access MySQL from any IP then you could risk being hacked.

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 07-21-2011, 11:41 PM
  2. Forgot to feed my mouse
    By Jordan in forum Technology Ramble
    Replies: 3
    Last Post: 12-14-2007, 06:08 PM
  3. MySQL Root Password
    By Prog in forum Linux Applications
    Replies: 1
    Last Post: 10-08-2007, 12:38 PM
  4. Forgot Your Password On XP?
    By pranky in forum Tutorials
    Replies: 12
    Last Post: 04-26-2007, 07:08 AM
  5. root directory
    By Chan in forum PHP Development
    Replies: 2
    Last Post: 08-04-2006, 03:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts