Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-12-2013, 12:44 AM   #1
Registered: Jun 2010
Posts: 30

Rep: Reputation: 0
Unable to reset mysql password in Fedora 16

Good Day,

I have just installed mysql on a fedora 16 box and its asking me for a password. When i press the enter key it says access denied.

When googling this issue..persons said i could try

End mysql process and starting it with
-mysqld_safe --skip-grant-tables &

Then going into mysql with
mysql -u root
4. use mysql database
5. use the following query
update user set password=PASSWORD('new password') where user=root
6 Now flush the privileges and quit
flush privileges
7. stop mysql
8. Now restart mysql in normal mode
/etc/init.d/mysqld start

I was actually able to create a password in safe mode....however after i flushed the privileges and restarted mysql...the password i created doesnt work...could it be the my.cnf file?

Brian Hall
Old 01-12-2013, 03:47 AM   #2
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 530
Blog Entries: 3

Rep: Reputation: 117Reputation: 117
Do this:

# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables &
# mysql -uroot
mysql> use mysql;
mysql> update user set password=PASSWORD("your-new-pwd") where User='root';
mysql> flush privileges;
mysql> exit
# /etc/init.d/mysql stop
# /etc/init.d/mysql start
# mysql -uroot -p
and enter: your-new-pwd


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
How to reset MYSQL password prashansa Linux - Newbie 2 08-08-2012 08:27 AM
unblable to reset password for mysql Gil@LQ Linux - Server 1 04-13-2012 04:46 AM
Unable to reset the root password for mysql on fedora cll975dll Linux - Newbie 1 08-08-2009 10:47 PM
Unable to reset mysql root password soylentgreen Linux - Server 5 08-02-2008 11:05 PM
MySQL - Canot reset password texmansru47 Linux - Software 1 10-10-2005 06:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 PM.

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