First stop the mysql service.
#/etc/init.d/mysqld stop
start server mysql without password.
#mysqld_safe --skip-grant-tables &
#mysql -u root
mysql > use mysql;
mysql > update user set password=passwd(******) where user="root";
>flush privileges;
>quit;
Now start the services.
#/etc/init.d/mysqld start
Now you can login with new passwd.
#mysql -u root -p
Friday, July 18, 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment