>use mysql
>update user set password=password("新密码") where user="root";
>flush privileges;
注:如是4.1以上版本则使用old_password()函数进行密码更改。
如果出现类似错误,请检查提及的目录所属
[dorainm@thinkpad mysql]# nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/cocobear.pid
071024 13:46:14 mysqld ended