1: Download Install CMake (mysql5.5 is compiled by CMake later)
2: Create MySQL installation directory and database storage directory
#mkdir /usr/mysql //安装mysql
#mkdir /usr/mysql/data //存放数据库
3: Create MySQL users and user groups
#groupadd mysql
#useradd -g mysql -s /bin/
false
-M mysql
4: Install mysqltar-zxv-f/ROOT/MYSQL-5.6.26.TAR.GZCD mysql-5.6.26cmake
-DCMAKE_INSTALL_PREFIX=/usr/mysql -DMYSQL_DATADIR=/usr/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=
all
-DENABLED_LOCAL_INFILE=1
If an error is required, install yum-y installed ncurses-develrm-f cmakecache.txtmakemake install5: Configure Mysqlcd/usr/mysqlchown-r Root:mysql. Chown-r Mysql:mysql DATA6:CP support-files/my-
default
.cnf /etc/my.cnf
7: Initialize permission table scripts/mysql_install_db
--user=mysql --basedir=/usr/mysql --datadir=/usr/mysql/data
8: Start the MySQL serviceCd/usr/mysql/support-filesCP Mysql.server/etc/init.d/mysqldchmod 755/etc/init.d/mysqldService mysqld Start
CentOS 6.5 Source Installation MySQL5.6.26