2018-07-13html
MySQL數據庫的下載及安裝教程
mysql
問題1:Authentication plugin 'caching_sha2_password' cannot be loadedsql
alter user 'root'@'%' identified with mysql_native_password by 'root'; set password for 'root'@'%'='Test123'; --Test123 爲密碼 root爲user %對應host,默認是localhost,%是通配符 flush privileges;
問題2:mysql遠程鏈接 Host * is not allowed to connect to this MySQL server數據庫
MySQL 8.0 Command Line Client - Unicode ruby
use mysql; select host,user,from user where user='root';
update user set host ='%'where user ='root';plugin
重啓服務使其生效session
+-----------+------------------+-----------------------+ | Host | User | plugin | +-----------+------------------+-----------------------+ | % | ming8006 | caching_sha2_password | | localhost | mysql.infoschema | caching_sha2_password | | localhost | mysql.session | caching_sha2_password | | localhost | mysql.sys | caching_sha2_password | | localhost | root | caching_sha2_password | +-----------+------------------+-----------------------+
問題3:navicat 鏈接 mysql 出現1251Client does not support authentication protocol requested by server的解決方案
ide
MySQL 8.0 Command Line Client - Unicode this
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'quark@123';
重啓服務使其生效spa