Install MySQL6.0 under Fedora9.0

Source: Internet
Author: User
1. Download the source code package to release

1. Download the source code package

Download To in mysql-6.0.0-alpha.tar.gz

2. Create a user group and user group for mysql

Groupadd mysql
Useradd-g mysql

3. Compile and install mysql

Cp mysql-6.0.0-alpha.tar.gz/usr/local/src
Tar-zxvf mysql-6.0.0-alpha.tar.gz
Cd mysql-6.0.0-alpha
./Configure -- prefix =/usr/local/mysql # specify the installation directory
Make install

4. Configure and start mysql

Cp support-files/my-medium.cnf/etc/my. cnf
Chown-R mysql.
Chgrp-R mysql.
Bin/mysql_install_db -- user = mysql # initialize and install the mysql database
Chown-R root.
Chown-R mysql var
Bin/mysqld_safe -- user = mysql &

5. Change the root password of mysql

/Usr/local/mysql/bin/mysqladmin-u root password [New password]

6. Set mysql to start automatically

Cp support-files/mysql. server/etc/rc. d/init. d/mysql
Chmod + x/etc/rc. d/init. d/mycql
Chkconfig -- add mysql
Service mysql start

Starting MySQL. Manager of pid-file quit without updating fi [failed]

Selinux, the culprit
Enable/etc/selinux/config and change SELINUX = enforcing to SELINUX = disabled. Then, the problem is solved after the disk is exited and the machine is restarted.

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: 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.