- Stop mysql first
#/usl/local/etc/rc.d/mysql-server stop.
#mysqld_safe --skip-grant-tables - Than open new shell and go to the mysql-server
#mysql --user=root mysql - Now you enter the mysql server and run this command
#update user set Password=PASSWORD('new-password') where user='root';
#flush privileges;
#exit; - Start the server
#/usl/local/etc/rc.d/mysql-server start - Done
0 comments:
Post a Comment