This is the default example configuration of mysql-default-authentication-plugin.cnf provided by MySQL. This config file was generated by MySQL running on CentOS 8.
It is located under: /etc/my.cnf.d/mysql-default-authentication-plugin.cnf
#
# 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 http://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-default-authentication-plugin.cnf
curl http://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