About installing mysqlmy. cnf in linux

Source: Internet
Author: User
Environment: when mysql is not installed in centos6.532 bits, my already exists in the etc directory. what is cnf and its role. after mysql is installed, run the following code in mysql: {code ...} is it true that mysql's my ....

Environment: centos 6.5 32-bit
When mysql is not installed, my. cnf already exists in the/etc/directory)

After installing mysql, follow the online tutorial to execute the following code for mysql:

cp support-files/my-medium.cnf /etc/my.cnf

The operation does not take mysql's my. cnf overwrites my in the system. cnf. why does this happen? it's still a mysql prepared by linux. what about cnf. if you do not set my. where can the cnf file be stored in/etc. does not affect the use of mysql

Reply content:

Environment: centos 6.5 32-bit
When mysql is not installed, my. cnf already exists in the/etc/directory)

After installing mysql, follow the online tutorial to execute the following code for mysql:

cp support-files/my-medium.cnf /etc/my.cnf

The operation does not take mysql's my. cnf overwrites my in the system. cnf. why does this happen? it's still a mysql prepared by linux. what about cnf. if you do not set my. where can the cnf file be stored in/etc. does not affect the use of mysql

Have you selected the Mysql installation component when installing Centos?

Remove mysql database installed in yum

yum remove mysql -y

My. cnf is the configuration file loaded at mysql startup. The path strength of my. cnf can be configured when mysql is installed ./

-DSYSCONFDIR =/etc # my. cnf path

You can customize the value of-DSYSCONFDIR =/etc in the configuration.

Related Article

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: info-contact@alibabacloud.com 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.