标签:
#service mysqld restart
或
# /etc/init.d/mysql stop 或 # killall -TERM mysqld(不推荐)
# mysqld_safe –skip-grant-tables & 或, # mysqld_safe --skip-grant-tables >/dev/null 2>&1 &
# mysql -u root
或,
# /usr/local/mysql/bin/mysql -u root mysql
use mysql; select host, user, password from user; update user set password=password(“newpassword”) where user=”root” flush privileges;
service mysqld restart
或,
/etc/init.d/mysql restart
标签:
原文地址:http://www.cnblogs.com/emberd/p/4434085.html