Authentication plugin 'caching_sha2_password' is not supported
mysql> select host,user,plugin,authentication_string,password_expired,password_last_changed,password_lifetime,account_locked,Create_role_priv,Drop_role_priv,Password_reuse_history,Password_reuse_time,Password_require_current FROM MYSQL.user whereuser='root'\G;*************************** 1. row ***************************Host: localhostUser: rootplugin: caching_sha2_passwordauthentication_string: $A$005$3^3*[&!YiY\Ft]HlTE9I24QoS990EXKd3ANI.ePlavnWyt4fLyp7.Z1hh8password_expired: Npassword_last_changed: 2018-12-12 09:38:42password_lifetime: NULLaccount_locked: NCreate_role_priv: YDrop_role_priv: YPassword_reuse_history: NULLPassword_reuse_time: NULLPassword_require_current: NULL1 row in set (0.00 sec)
mysql> alter user 'root'@'localhost' identified with mysql_native_password by 'iris';Query OK, 0 rows affected (1.85 sec)
mysql> select host,user,plugin,authentication_string,password_expired,password_last_changed,password_lifetime,account_locked,Create_role_priv,Drop_role_priv,Password_reuse_history,Password_reuse_time,Password_require_current FROM MYSQL.user whereuser='root'\G;*************************** 1. row ***************************Host: localhostUser: rootplugin: mysql_native_passwordauthentication_string: *72C26A280E81148FBC40D9D60BE74759464D93FApassword_expired: Npassword_last_changed: 2018-12-12 09:27:04password_lifetime: NULLaccount_locked: NCreate_role_priv: YDrop_role_priv: YPassword_reuse_history: NULLPassword_reuse_time: NULLPassword_require_current: NULL1 row in set (0.00 sec)
mysql>mysql> SHOW VARIABLES LIKE 'default_authentication_plugin';+-------------------------------+-----------------------+| Variable_name | Value |+-------------------------------+-----------------------+| default_authentication_plugin | caching_sha2_password |+-------------------------------+-----------------------+1 row in set, 1 warning (0.00 sec)mysql>
[mysqld]default_authentication_plugin=mysql_native_password
mysql> alter user 'root'@'localhost' identified with caching_sha2_password by 'iris';Query OK, 0 rows affected (0.18 sec)mysql>
[mysqld]default_authentication_plugin=caching_sha2_password
长按下图二维码,关注更多数据库实用技巧。

文章转载自小灯数据,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




