MySQL mysql-default-authentication-plugin.cnf configuration example for CentOS Linux 8

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

    
  

Config Details

Location
/etc/my.cnf.d/mysql-default-authentication-plugin.cnf
Operating system
CentOS Linux 8
Length
12 lines
MD5 checksum
12303e5f53e818ee4ae150674c8f70fc

Usage

Download the raw file with wget or curl

Wget

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

curl https://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-default-authentication-plugin.cnf > mysql-default-authentication-plugin.cnf.example