>데이터 베이스 >MySQL 튜토리얼 >linux 源码安装mysql5.5_MySQL

linux 源码安装mysql5.5_MySQL

WBOY
WBOY원래의
2016-06-01 13:13:03994검색

linux下源码安装mysql步骤如下:

yum updateyum upgradeyum install -y vim man wgetyum install -y gcc gcc-c++ gcc-g77 pcre-devel openssl-devel bison autoconf automake make libcurl-devel gd-devel zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gzwget http://mysql.cs.pu.edu.tw/Downloads/MySQL-5.5/mysql-5.5.30.tar.gztar -zxvf cmake-2.8.10.2.tar.gz cd cmake-2.8.10.2./bootstrap gmake gmake install cd .. cmake --help cmake --versioncp -rf ./cmake-2.8.10.2 /usr/local/cmakerm -rf ./cmake-2.8.10.2 ls cmake --version groupadd mysql useradd -r -g mysql mysqltar -zxvf mysql-5.5.30.tar.gzcd mysql-5.5.30 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/usr/local/mysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DEXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306 -DWITH_DEBUG=0 makemake installchown -R mysql.mysql /usr/local/mysql/cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnfcd /usr/local/mysql//usr/local/mysql/scripts/mysql_install_db --user=mysqlcp support-files/mysql.server /etc/init.d/mysqld chmod +x /etc/init.d/mysqldchkconfig --level 345 mysqld on Vim /etc/profileexportPATH=$PATH:$HOME/bin:/usr/local/mysql/bin:/usr/local/mysql/lib service mysqld start service mysqld stop
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.