方法一:
# /etc/init.d/mysqld 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
以上就是包容蜜粉最近收集整理的关于Linux mysql 修改用户名密码的全部内容,更多相关Linux内容请搜索靠谱客的其他文章。
发表评论 取消回复