MY.CNF Database Parameters Detailed

Source: Internet
Author: User
Tags log log mysql client

The/etc/my.cnf file is a MySQL configuration file, which is detailed in the following sections:

[mysqld] //server-side configuration

Datadir=/data/mysql//Data Catalog

Socket=/var/lib/mysql/mysql.sock//socket Communication settings

User=mysql//start with MySQL user

# Disabling Symbolic-links is recommended to prevent assorted security risks

Symbolic-links=0//Whether shortcuts are supported

log-bin=mysql-bin //Turn on Bin-log log

Server-id = 1//mysql Service ID

Auto_increment_offset=1//Field growth

auto_increment_increment=2//Field growth

[Mysqld_safe] //mysql service Secure Boot Configuration



Replicate-do-db =jfedu//allow slave to sync which library


Basedir = path # uses the given directory as the root directory (the installation directory).

DataDir = path # reads the database file from the given directory.

Pid-file = filename # Specifies a file that holds the process ID for the MYSQLD program (only for Unix/linux systems);

Socket =/tmp/mysql.sock # Specifies a socket file for local communication between the MySQL client and server (the default is/var/lib/mysql/mysql.sock file under Linux)

MY.CNF Database Parameters Detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.