Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Web Server

Linux Web Server Web Server help and support (including cpanel, whm, plesk, etc.)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-2008, 02:05 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default 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?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-19-2008, 12:52 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

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.
Reply With Quote
  #3 (permalink)  
Old 11-26-2008, 02:27 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

That's bad mate. Did you solve it?
__________________
Business Directory
Technology Blog
Reply With Quote
  #4 (permalink)  
Old 11-26-2008, 02:48 PM
Junior Member
 
Join Date: Aug 2008
Posts: 29
SexYLinuX is on a distinguished road
Default

Don't you think that having the functionality of resetting the password can compromise security?
Reply With Quote
  #5 (permalink)  
Old 11-26-2008, 05:02 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 394
Tor is on a distinguished road
Default

I think it can but if someone can gain root access to your system your security is already gone anyway.
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-28-2008, 12:15 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

True. Because that means that they already hacked you...
__________________
Business Directory
Technology Blog
Reply With Quote
  #7 (permalink)  
Old 11-28-2008, 02:05 PM
Junior Member
 
Join Date: Aug 2008
Posts: 29
SexYLinuX is on a distinguished road
Default

Hmm.. no I mean if the hack the database server, can't they hack the root account and gain root access on the database?
Reply With Quote
  #8 (permalink)  
Old 11-29-2008, 09:43 AM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

I've got no idea if that is possible.
__________________
Business Directory
Technology Blog
Reply With Quote
  #9 (permalink)  
Old 11-29-2008, 10:01 AM
Member
 
Join Date: Jan 2008
Posts: 38
HappyUser is on a distinguished road
Default

Unless you hack the root user I don't think you will be able to hack his databases....right?
Reply With Quote
  #10 (permalink)  
Old 11-29-2008, 02:36 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

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.
Reply With Quote

Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo: must be setuid root mop Linux General 2 08-19-2008 09:02 PM
Remove User Password Hektor Linux Security 8 06-24-2008 02:12 PM
sudoers without password Tor Linux General 2 04-07-2008 10:46 PM
Enforce Password Change Wanch Linux Security 6 03-23-2008 03:52 AM
MySQL Root Password Prog Linux Applications 1 10-08-2007 08:38 PM


All times are GMT. The time now is 01:46 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.