Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-08, 19:54
BOD Member
 
Join Date: Oct 2008
Posts: 30
Default How to change MYSQL Root Password?

First you need to disable the safe_mode in my.cnf file

Quote:
pico /etc/my.cnf
Then stop the Mysql service

Quote:
service mysql stop
Kill all the running process for the Mysql and start it in Safe mode


Quote:
killall -e -9 mysql
safe_mysqld --skip-grant-tables &
Reset the password with the following command

Quote:
mysqladmin -u root flush-privileges password "newpassword"
Restart mysql server

Quote:
service mysql restart
or
/etc/init.d/mysql start
Test the Mysql server by entering the root password.
Quote:
mysql -u root -p
__________________
Regards
George
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 01:54.

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.