LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-11-2013, 11:44 PM   #1
ghandizzle8
Member
 
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
Code:
update user set password=PASSWORD('new password') where user=root
6 Now flush the privileges and quit
Code:
flush privileges
quit
7. stop mysql
8. Now restart mysql in normal mode
Code:
/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?

Regards,
Brian Hall
 
Old 01-12-2013, 02:47 AM   #2
tallship
Member
 
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: 116Reputation: 116
Do this:

Code:
# /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
 
  


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


All times are GMT -5. The time now is 09:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration