The build_mysql_conf Script

Valid for versions 82 through the latest version


Last modified: July 1, 2021

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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The servers_queue Script

Valid for versions 82 through the latest version Last modified: June 21, 2021...

The auto-adjust-mysql-limits Script

Valid for versions 82 through the latest version Last modified: June 21, 2021...

The autossl_check Script

Valid for versions 82 through the latest version Last modified: May 13, 2020 Overview...

The backup Script

Valid for versions 82 through the latest version Last modified: May 13, 2020 Overview...

The backup_restore_manager Script

Valid for versions 82 through the latest version Last modified: July 28, 2022...