LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-07-2004, 01:16 PM   #1
b200306
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
Resetting MySQL root password


Hi!

I have forgotten my MySQL root password. How can I change it?
I am using MySQL 3.23 on RH 9.
 
Old 02-07-2004, 03:18 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I think you have to know the old one to change to a new one. Try:

mysqladmin -u root -p <new_password>

I'm not sure if it will prompt you for the old password though.
 
Old 02-08-2004, 01:43 PM   #3
b200306
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Original Poster
Rep: Reputation: 0
No, it didn't work.

I tried that... didn't work.

Is there a way to COMPLETELY remove mysql from the system, including all the databases, config files and passwords?

I tried removing mysql from the RH9 add/remove components menu, but when i reinstalled MySQL, it still asked for my old root password.
 
Old 02-08-2004, 03:21 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well the mysql passwords are stored in the mysql database so I'd imagine deleting that database would COMPLETLY remove mysql. I'm not sure why RedHat did not delete the database. I'd do this:

rpm -qa | grep mysql

Then remove all the mysql related rpms:

rpm -e mysql mysql-server mysql-client etc.

Then check to see if the mysql database was deleted. It should be in /var/lib/mysql and the database file is called mysql.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resetting th root password on rh9 hamza11050 Linux - Software 4 09-30-2004 07:21 PM
Resetting Root password lorddecker Linux - Software 4 06-18-2004 02:48 PM
MySQL root password. bulzbb Linux - Newbie 2 03-11-2004 09:32 AM
Mysql root password spintrance7 Linux - Software 7 11-29-2003 04:20 PM
resetting root password. Reaps^ Linux - Security 1 07-06-2003 03:46 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration