1、下载cmake
tar
./configure
make && make install
2、groupadd mysql
useradd -g mysql mysql
mkdir -pv /usr/local/mysql/data
3、tar mysql
cd
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql - DMYSQL_DATADIR=/usr/local/mysql/data
make && make install
chown -R mysql:mysql /usr/local/mysql
cp mysql-5.5.27/mysql.server /etc/init.d/mysqld
chmod a+x /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 35 mysqld on
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
service mysqld start
netstat -nltp | grep :3306
/usr/local/mysql/bin/mysql -uroot -p
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。