标签:groupadd conf useradd file user group ati sys ack
安装mysql5.7需要boost依赖包
groupadd mysql useradd -r -g mysql -s /bin/false mysql
cmake .
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.7
-DMYSQL_DATADIR=/usr/local/mysql-5.7/data
-DDOWNLOAD_BOOST=1
-DWITH_BOOST=/usr/local/boost_1_59_0
-DSYSCONFDIR=/etc
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_PARTITION_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITH_MYISAM_STORAGE_ENGINE=1
-DENABLED_LOCAL_INFILE=1
-DENABLE_DTRACE=0
-DDEFAULT_CHARSET=utf8mb4
-DDEFAULT_COLLATION=utf8mb4_general_ci
-DWITH_EMBEDDED_SERVER=1
make
make install
配置开机启动项
cp /usr/local/mysql-5.7/support-files/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig mysqld on
初始化数据
/usr/local/mysql-5.7/bin/mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql-5.7 --datadir=/usr/local/mysql-5.7/data
启动数据库
service mysqld start
//注意自己的配置文件
标签:groupadd conf useradd file user group ati sys ack
原文地址:http://www.cnblogs.com/paulversion/p/7074624.html