php7.2 鏈接 MySQL 8錯誤

my.conf 下添加以下內容解決問題

1、設置編碼

character-set-server = utf8mb4

collation-server = utf8mb4_unicode_ci

2、設置認證插件方式

default_authentication_plugin=mysql_native_password
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章