Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

(❀╹◡╹)

[Mysql + PHP] Mysql8.* caching_sha2_password 문제 본문

Programing/WEB

[Mysql + PHP] Mysql8.* caching_sha2_password 문제

진 주 2019. 10. 24. 09:55

/etc/mysql/my.cnf 파일에 아래 문구 추가

default-authentication-plugin=mysql_native_password

 

https://stackoverflow.com/questions/50026939/php-mysqli-connect-authentication-method-unknown-to-the-client-caching-sha2-pa

 

php mysqli_connect: authentication method unknown to the client [caching_sha2_password]

I am using php mysqli_connect for login to a MySQL database (all on localhost)

stackoverflow.com

https://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/