You are on page 1of 23

Configuration

MySQLd Startup Options

Setting up various Command Line


Options
Continue >>>
Configuration –
Global Server Variables
Continue >>
Configuration –
Config File Location
Continue >>
Continue >>
Configuration –
Config File Structure
Continue >>

The configuration file is organized in sections (or


groups). A section is composed of a name placed
between two brackets, of options and ends with the
beginning of another section or the end of the file.
Thus, the name of the MySQL server section is
[mysqld].
The name of the default text client section is [mysql]
(not to be confused with [mysqld])
Continue >>>
Sample configuration file
$ cat /etc/mysql/my.cnf

# Global section to all MySQL clients


[client]
socket = /tmp/mysql.sock # clients connect with this socket

# Client section text mysql


[Mysql]
prompt = \R:\m\u$\d> # The command prompt of the client text mysql is of the form: HH: mm
user$schema>

# MySQL server section


 
[Mysqld]
slow_query_log # enable the slow query log
slow_query_log_file = mysql-slow.log # slow query log name
long-query-time = 2 # Queries that are longer than 2 seconds are logged
enable-federated # Enables the FEDERATED engine
Continue >>
Configuration –
Config File Syntax
Continue >>
Continue >>
Configuration –
Important Server Settings
Continue >>
Configuration –
Server Startup Initialization
Continue >>
Continue >>
Continue >>
Configuration –
Connection Initialization
Continue >>
Configuration –
Replication Initialization

You might also like