centos安装mysql5.6,centos mysql5.7 安装
CentOS源码编译安装MySQL 5.5.15 CentOS教程
CentOS源码编译安装MySQL 5.5.15发表于233 天前
关系型数据库
评论数10
安装编译工具妙的安装海湾合作委员会海湾合作委员会yum安装ncurses-devel下载源码mkdir-p/tmpcd/tmpwget http://dev。MySQL。com/get/Downloads/MySQL-5.5/MySQL-5。5 .15 .焦油。gz/from/http://MySQL。他。net/wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gzwget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz安装第一种和bison CD/tmptar zxvf cmake-2。8 .4 .焦油。gzcd cmake-2。8 .4。/bootstrapmakemake安装CD/tmptar zxvf bison-2.5。焦油。gzcd野牛-2.5 ./configuremakemake安装编译安装MySQL/usr/sbin/group add MySQL/usr/sbin/useradd-g MySQL mysqlcd/tmptar xvf MySQL-5。5 .15 .焦油。gzcd MySQL-5。5 .15/cmake-DCMAKE _ INSTALL _ PREFIX=/usr/LOCAL/MySQL -dmy SQL _ UNIX _ ADDR=/tmp/MySQL。sock -DDEFAULT _ CHARSET=ut F8 -DDEFAULT _ COLLATION=ut F8 _ utf 8一些相关设置chmod w/usr/local/mysqlchown-R MySQL:MySQL/usr/local/mysqln-s/usr/local/MySQL/lib/lib MySQL客户端。所以。16/usr/lib/libmysql客户端。所以。16 mkdir-p/var/MySQL/mkdir-p/var/MySQL/data/mkdir-p/var/MySQL/log/chown-R MySQL:MySQL/var/MySQL/var/MySQL/MySQL/CD支持编辑此文件,查找并修改以下变量内容:)basedir=/usr/local/MySQL datadir=/var/MySQL/data加入启动项:
chkconfig -在上添加mysqldchconfig-345级mysqld启动服务:
服务服务器启动设置密码:
/usr/local/MySQL/bin/MySQL admin密码[新密码]