我的开源之路

mysql修改root密码的方法



# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

# /etc/init.d/mysqld restart
# mysql -uroot -p
Enter password:

mysql>

posted on 2008-08-28 20:45 刘浩 阅读(232) 评论(0)  编辑 收藏 引用 网摘 所属分类: 数据库和算法


只有注册用户登录后才能发表评论。
网站导航: