LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2005, 06:40 AM   #1
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Rep: Reputation: 15
I have forgetten my MySQL server root password.



I have forgetten my MySQL server root password.

MySQL version - 3.23.52
Linux - TurboLinux 8.0

What can I cansel or disable current mysql root password ?

Please help me .........
 
Old 11-11-2005, 07:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
This may help you.
Good luck
 
Old 11-14-2005, 12:37 AM   #3
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Thank u bathory.

***************************

How to Reset a Forgotten Root Password

MySQL version 3.23.54



Stop MySQL server:
# /etc/init.d/mysqld stop

Start MYSQL with "--skip-grant-tables" option.
# /usr/bin/safe_mysqld --skip-grant-tables

(I must open other new window)

Check status of mysql:
# /etc/init.d/mysqld status

# mysql -u root

mysql> use mysql;

mysql> select user,host,password from user;

mysql> update user set Password = PASSWORD('pass') where User ='root';
Query OK, 2 rows affected (0.02 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> exit
Bye

Stopt and start MySQL:
# /etc/rc.d/init.d/mysqld stop

# /etc/rc.d/init.d/mysqld start
 
Old 03-08-2007, 08:59 PM   #4
gtum5
Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
http://downloadebook.blogspot.com/

Try this if that didnt work...
http://linux-tweaks.blogspot.com/200...localhost.html
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql root password lost nazir Linux - Software 6 10-09-2007 10:18 AM
MySQL root password. bulzbb Linux - Newbie 2 03-11-2004 09:32 AM
Resetting MySQL root password b200306 Linux - Software 3 02-08-2004 03:21 PM
Mysql root password spintrance7 Linux - Software 7 11-29-2003 04:20 PM
MYSQL root password forgotton jon_k Linux - Software 5 07-18-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration