This article will take MySQL 5.5.47 as an example, the CentOS 6.5 platform, the installation and setup of MySQL database. Source package mode installation 1. New MySQL user and user group Groupadd mysqluseradd-r-G mysql-m Mysqlyum install BOOST-DEVELTAR-ZXVF Mysql-5.5.47.tar.gzyum i Nstall Cmakeyum Install Gc-develyum install Gityum install Gcc-c++yum install NCURSES-DEVELRM-RF CMAKECACHE.TXT[[EMAIL&N bsp;protected] mysql-5.7.7-rc]# cmake-dcmake_install_prefix=/usr/local/mysql \ [MySQL installation root directory]-dsysconfdir=/etc \ [ MySQL config file directory]-dmysql_user=mysql [mysql user name]make make installchown-r mysql:mysql/usr/local/mysqlchmod-r 755/usr/ LOCAL/MYSQLCD/USR/LOCAL/MYSQLCP./support-files/my-medium.cnf/etc/my.cnf./scripts/mysql_install_db--user= MYSQLCP./support-files/mysql.server/etc/rc.d/init.d/mysqldchmod +x/etc/rc.d/init.d/mysqldchkconfig--add Mysqldchkconfig--list mysqldservice mysqld startservice mysqld Stop perform the following command to turn off boot: chkconfig mysqld Off execute the following command to change the boot-boot run level to 3, 5:chkconfig--level mysqld on3.1.11 Add the MySQL bin directory to the PATH environment variable edit/etc/profile file: vi/etc/ Profile at the end of the file add the following two lines: path= $PATH:/usr/local/mysql/Binexport Path executes the following command to make the changes effective:. /etc/profilehttp://blog.csdn.net/xiamizy/article/details/2072525
Linux MySQL Installation steps