#!/bin/bash #baishuchao qq:995345781 ################################################################## MAKE_RUN=$(($(more /proc/cpuinfo | grep processor | wc -l) + 1)) groupadd mysql useradd -g mysql -s /sbin/nologin mysql tar zxvf mysql-5.0.51a.tar.gz cd mysql-5.0.51a ./configure \ --prefix=/usr/local/mysql \ --enable-assembler \ --without-debug \ --with-mysqld-ldflags=-all-static \ --with-charset=utf8 \ --with-extra-charsets=all \ --with-innodb \ --with-unix-socket-path=/usr/local/mysql/mysql.sock \ --enable-thread-safe-client \ --with-mysqld-user=mysql make -j ${MAKE_RUN} make install /usr/local/mysql/bin/mysql_install_db --user=mysql cd ..
MySQL一键安装
原创baishuchao 博主文章分类:MYSQL ©著作权
©著作权归作者所有:来自51CTO博客作者baishuchao的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:生产环境硬件使用总结
下一篇:mysql授权指导
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章