The build_mysql_conf Script
Valid for versions 82 through the latest version
Version:
82
Last modified: 2021 July 1
Overview
The /usr/local/cpanel/bin/build_mysql_conf script builds the default MySQL® configuration file. You can specify startup options on the command line or in a configuration file. MySQL client programs look for a configuration file when they start.
Note:
    
        Command-line options take precedence over settings defined in a configuration file.
    
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/bin/build_mysql_conf [options]Options
Use the following options with this script:
| Option | Description | Example | 
|---|---|---|
--daemonize         | 
Run the script in the background as a daemon. | /usr/local/cpanel/bin/build_mysql_conf --daemonize                            | 
--fix-my-cnf | 
Only fix the my.cnf file. This option will not run SELinux changes, the mysql_upgrade command, service restarts, or connection checks. | 
/usr/local/cpanel/bin/build_mysql_conf --fix-my-cnf | 
--no-upgrade | 
Do not run the mysql_upgrade command. | 
/usr/local/cpanel/bin/build_mysql_conf --no-upgrade | 
--no-restart | 
Do not restart the mysql service. | 
/usr/local/cpanel/bin/build_mysql_conf --no-restart | 
--no-selinux | 
Do not set SELinux context for MySQL binaries. | /usr/local/cpanel/bin/build_mysql_conf --no-selinux |