重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
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;