📅  最后修改于: 2022-03-11 15:04:59.779000             🧑  作者: Mango
mysql> UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('changeme') WHERE User = 'root';
mysql> FLUSH PRIVILEGES;