本論文では、変更するSQLステートメントは、パスワードを変更強調しました。rootのパスワードを忘れてしまった場合は、を参照してください解決する方法を忘れてしまったMySQLのrootパスワード
5.7パスワードの変更前のMySQL
update mysql.user set password=password('123456') where user='newuser' and host='localhost';
flush privileges;
MySQLの5.7パスワードの変更後
update mysql.user set authentication_string=password('123456') where user='newuser' and host='localhost';
flush privileges;