Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 09:33
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default Reset the password for mysql root user

You will get the password for mysql root user under /root/.my.cnf
#cat /root/.my.cnf
e.g
root@host[/]# cat /root/.my.cnf
[client]
user="root"
pass="modernbill99"
root@host [/]#

Please follow following steps to reset the root password.

#service mysqld stop
#killall -9 mysqld
#safe_mysqld --skip-grant-tables & *// it will start mysql in safe mode in background. \\*
<hit Entre Key>
root@host [/]#mysql
mysql>FLUSH PRIVILEGES;
mysql>GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'modernbill99' WITH GRANT OPTION;
mysql>FLUSH PRIVILEGES;
mysql>\q
root@host [/]# service mysql stop
root@host [/]# service mysql start.
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.