1. Download the source code package to release
1. Download the source code package
Download To http://dev.mysql.com/downloads/mysql/6.0.html 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
Make install
4. Configure and start mysql
Cp support-files/my-medium.cnf/etc/my. cnf
Cd/usr/local/mysql
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.