mysql -u root
mysql>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('你要设置的密码');
mysqladmin -u root password "你要设置的密码"
mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET Password = PASSWORD('你要设置的密码') WHERE user = 'root';
mysql> FLUSH PRIVILEGES;
mysqladmin -u root password oldpass "你要设置的新密码"
mysqld_safe --skip-grant-tables&mysql -u root mysql
mysql> UPDATE user SET password = PASSWORD("你要设置的新密码") WHERE user = 'root' ;
mysql> FLUSH PRIVILEGES;
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。