Sample Header Ad - 728x90

How to correctly replace 'default_authentication_plugin' with 'authentication_policy'?

1 vote
2 answers
16920 views
I have MySQL 8.0.33 on Ubuntu. In the error log, I see the following warning: > [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead. In my mysql.cnf file, I changed this line: default_authentication_plugin= mysql_native_password to this line: authentication_policy= mysql_native_password but it broke my application: when the application tries to connect to the database, it gets an error Could not connect: The server requested authentication method unknown to the client. What is the correct way to solve this issue and remove the warning, without making too many changes to the application?
Asked by Erel Segal-Halevi (111 rep)
Jun 1, 2023, 02:48 PM
Last activity: May 6, 2024, 10:17 AM