MySQL5.5.34安装

MySQL5.5.34安装需要用到cmke  ncurses-devel
yum install -y  ncurses-devel cmake  gcc gcc-c++   bison

下载 http://mirrors.sohu.com/mysql/MySQL-5.5/
 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql  -DMYSQL_DATADIR=/usr/local/mysql/data   -DSYSCONFDIR=/usr/local/mysql/etc/  -DWITH_INNOBASE_STORAGE_ENGINE=1  -DWITH_ARCHIVE_STORAGE_ENGINE=1  -DWITH_BLACKHOLE_STORAGE_ENGINE=1  -DWITH_FEDERATED_STORAGE_ENGINE=1  -DWITH_PARTITION_STORAGE_ENGINE=1  -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock  -DMYSQL_TCP_PORT=3306  -DENABLED_LOCAL_INFILE=1  -DEXTRA_CHARSETS=all  -DDEFAULT_CHARSET=utf8  -DDEFAULT_COLLATION=utf8_general_ci  -DMYSQL_USER=mysql
make -j8
make install

你可能感兴趣的:(MySQL5.5安装)