Get the default configuration file mysql-default-authentication-plugin.cnf for MySQL, optimized for CentOS Linux 8. This example configuration ensures optimal compatibility and performance for MySQL, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/my.cnf.d/mysql-default-authentication-plugin.cnf.
For more configurations and setup guides, visit our related files section to further customize your system.
#
# MySQL 8.0.4 introduced 'caching_sha2_password' as its default authentication plugin.
# It is faster and provides better security then the previous default authentication plugin.
#
# Until now (09/2018), it does not work with some other software (eg. MariaDB client, MariaDB connectors, ...)
#
# This configuration file changes MySQL default server configuration, so it behaves the same way as in MySQL 5.7.
#
# To change the behaviour back to the upstream default, comment out the following lines:
[mysqld]
default_authentication_plugin=mysql_native_password
Download the raw file with wget or curl
wget -O mysql-default-authentication-plugin.cnf.example https://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-default-authentication-plugin.cnf
curl https://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-default-authentication-plugin.cnf > mysql-default-authentication-plugin.cnf.example
Other config files you might find useful