Symptoms
The MySQL log file is quickly filling with the following warning message.
2023-08-04T23:19:27.023454Z 20 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
Description
The mysql_native_password authentication plugin was deprecated in MySQL 8.0 in favor of the caching_sha2_password plugin, which cPanel doesn't yet support. The warning messages are designed to let system administrators know of the change.
Workaround
Setting the log verbosity to 1 will prevent the warning messages from being logged.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open
/etc/my.cnfin your preferred text editor. - Locate the
log-error-verbosityentry.
Please note that if thelog-error-verbosityentry doesn't exist, it should be added as a new line under thelog-errorentry. - Set the value of the log-error-verbosity to
1.log-error-verbosity=1
- Save the changes and exit the text editor.
- Restart the mysqld service.
/usr/local/cpanel/scripts/restartsrv_mysql
Additional resources
10.4 Changes in MySQL 8.0: caching_sha2_password as the Preferred Authentication Plugin
Comments
0 comments
Article is closed for comments.