パスワードの変更
自分自身修正するためにrootパスワードを
方法:
mysqladminは-uroot -p'123 'パスワード' new_passwordを「// 123は古いパスワードです
方法2:
MySQLで
update mysql.user set authentication_string=password('Qianfeng123!') where user='root' and host='localhost';
方法3:
ユーザーがパスワードを設定しているには、あなたはどのユーザーで実行する必要が
set password=password(new_password'')
上記の方法は、以降のバージョンである削除は、次のメソッドを使用します
SET PASSWORD='new_password'; 直接设置密码
他の変更するには、rootユーザのパスワード
方法を:
mysql> SET PASSWORD FOR user3@'localhost'=password('new_password');
上記の方法は、将来削除で、次のメソッドを使用します。
mysql> SET PASSWORD FOR user3@’localhost’='new_password';
方法2:
UPDATE mysql.user SET authentication_string=password(‘new_password’)
WHERE user=’user3’ AND host=’localhost’;
普通のユーザーが自分のパスワードを変更するには
mysql> SET password=password('new_password');
mysql> select * from mysql.user\G
mysql> alter user 'wing'@'localhost' identified by 'Qianfeng123!@';