在mysql 8.0中,caching_sha2_password是預設的身份驗證外掛程式,而不是mysql_native_password。有關此更改對伺服器操作的影響以及伺服器與客戶端和聯結器的相容性的資訊,請參閱caching_sha2_password作為首選身份驗證外掛程式。
解決方法
編輯my.cnf檔案,更改預設的身份認證外掛程式。
使用如下命令檢視該檔案的位置
brew list mysql
cd到my.cnf檔案所在位置,新增如下內容
default_authentication_plugin=mysql_native_password
重啟mysql
mysql.server restart
MySQL8 0安裝教程
環境 mysql8.0.20,windows10專業版 2.配置環境變數,在path中新增值為 c program files x86 mysql mysql 8.0.20 winx64 bin 3.開啟cmd,輸入 mysqld initialize insecure user mysql 然後輸...
MySql 8 0 安裝除錯
mysql my.ini mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 basedir c program files mysql mysql 8.0.11 winx64 設定mysql資料庫的資料的存放目錄 datadir c program files mysql ...
手動安裝MySQL8 0
就在此處手動建立my.ini檔案,檔案內容如下 mysql 設定mysql客戶端預設字符集 default character set utf8 mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 允許最大連線數 max connections 200 服務端使用的字符集預設...