首页 > 代码库 > Mysql5.5安装
Mysql5.5安装
下载地址:http://imysql.cn/node/654 包名:mysql-5.5.41.zip
yum安装yum install cmake*
gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool*
安装前的系统设置:
Mkdir /usr/local/mysql
Mkdir /usr/local/mysql/data
groupadd mysql
useradd -g mysql mysql
chown -R mysql:mysql /usr/local/mysql/data
cmake编译安装mysql:
unzip mysql-5.5.41.zip
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DSYSCONFDIR=/usr/local/mysql/etc \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DMYSQL_TCP_PORT=3306 \
-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock \
-DMYSQL_USER=mysql \
-DEXTRA_CHARSETS=all \
-DWITH_READLINE=1 \
-DWITH_SSL=system \
-DWITH_EMBEDDED_SERVER=1 \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1
make && make install
未完
http://heylinux.com/archives/993.html
本文出自 “大王好帅” 博客,请务必保留此出处http://dawang.blog.51cto.com/4927689/1600793
Mysql5.5安装