MySQL/Percona: Show the order of configuration files

Show which files the database server uses and the order they are read.
  1. Get the server binary location
    • # which mysqld
      /usr/sbin/mysqld
  2. Get the configuration file locations and order
    • # /usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
      Default options are read from the following files in the given order:
      /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf

Comments

Popular posts from this blog

YumRepo Error: All mirror URLs are not using ftp, http[s] or file

Linux: Permanent CIFS/SMB mount

Plesk - Decrypt FTP Passwords