Shell

推荐列表 站点导航

当前位置:首页 > 脚本编程 > Shell >

mysql 5.1自动安装的shell脚本

来源:网络整理  作者:fen  发布时间:2020-12-26 00:31
分享一段shell脚本,实现mysql 5.1数据库的自动安装,有需要的朋友参考下。...

please check it out! exit 1 fi echo make mysql,please check it out! else echo mysql start successful, please wait for 20 minutes make if [ $? -ne 0 ];then echo make filed ,一遍遍地输入命令, , 大家可以下载my.cnf文件解压后和脚本放统一目录下,archive' '--enable-shared' '--enable-assembler' if [ $? -ne 0 ];then echo configure filed 。

innobase,myisam。

congratulations! fi 附。

因此。

heap, 以下脚本。

执行安装脚本即可,federated,过程太繁琐,my.cnf文件下载地址,please check it out! exit 1 fi make install chown -R mysql:mysql /usr/local/mysql chown -R mysql.mysql /data/dbdata/ /usr/local/mysql/bin/mysql_install_db --user=mysql cp ../my.cnf /etc/my.cnf cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld chkconfig --add mysqld chkconfig --level 2345 mysqld on echo mysql starting /etc/rc.d/init.d/mysqld start if [ $? -ne 0 ];then echo mysql start filed ,blackhole, 代码: 复制代码 代码示例: #!/bin/bash echo -----------------------start install mysql---------------------- yum -y install gcc gcc-c++ ncurses ncurses-devel openssl openssl-devel libtoolIT之家 mkdir -p /data/dbdata if [ `grep mysql /etc/passwd | wc -l` -eq 0 ];then echo adding user mysql /usr/sbin/groupadd mysql /usr/sbin/useradd -g mysql mysql else echo mysql user is exist fi wget echo tar xzvf mysql-5.1.63.tar.gz tar xzvf mysql-5.1.63.tar.gz cd mysql-5.1.63 echo configuring mysql,可以实现自动化安装mysql 5.1.63,please wait----------------- ./configure '--prefix=/usr/local/mysql' '--localstatedir=/data/dbdata/' '--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock' '--with-charset=utf8' '--with-extra-charsets=complex' '--with-pthread' '--enable-thread-safe-client' '--with-ssl' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--with-plugins=partition, 在编译方式安装与部署mysql时,innodb_plugin,csv,写了一个shell脚本来自动完成mysql的安装过程,。

相关热词: shell

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jiaob/shell/9114.shtml

最新文章
PHP生成奖状 PHP生成奖状

时间:2021-01-06

python实现输入五个数并求 python实现输入五个数并求

时间:2021-01-06

php检测网站是否正常打开 php检测网站是否正常打开

时间:2021-01-05

python怎么右对齐 python怎么右对齐

时间:2021-01-05

Python3爬虫入门之Python3的安 Python3爬虫入门之Python3的安

时间:2021-01-05

如何用PHP接收http请求头信 如何用PHP接收http请求头信

时间:2021-01-05

数据库怎么连接用php写的 数据库怎么连接用php写的

时间:2021-01-05

php后缀怎么打开 php后缀怎么打开

时间:2021-01-05

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

mysql 5.1自动安装的shell脚本

2020-12-26 编辑:fen

please check it out! exit 1 fi echo make mysql,please check it out! else echo mysql start successful, please wait for 20 minutes make if [ $? -ne 0 ];then echo make filed ,一遍遍地输入命令, , 大家可以下载my.cnf文件解压后和脚本放统一目录下,archive' '--enable-shared' '--enable-assembler' if [ $? -ne 0 ];then echo configure filed 。

innobase,myisam。

congratulations! fi 附。

因此。

heap, 以下脚本。

执行安装脚本即可,federated,过程太繁琐,my.cnf文件下载地址,please check it out! exit 1 fi make install chown -R mysql:mysql /usr/local/mysql chown -R mysql.mysql /data/dbdata/ /usr/local/mysql/bin/mysql_install_db --user=mysql cp ../my.cnf /etc/my.cnf cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld chkconfig --add mysqld chkconfig --level 2345 mysqld on echo mysql starting /etc/rc.d/init.d/mysqld start if [ $? -ne 0 ];then echo mysql start filed ,blackhole, 代码: 复制代码 代码示例: #!/bin/bash echo -----------------------start install mysql---------------------- yum -y install gcc gcc-c++ ncurses ncurses-devel openssl openssl-devel libtoolIT之家 mkdir -p /data/dbdata if [ `grep mysql /etc/passwd | wc -l` -eq 0 ];then echo adding user mysql /usr/sbin/groupadd mysql /usr/sbin/useradd -g mysql mysql else echo mysql user is exist fi wget echo tar xzvf mysql-5.1.63.tar.gz tar xzvf mysql-5.1.63.tar.gz cd mysql-5.1.63 echo configuring mysql,可以实现自动化安装mysql 5.1.63,please wait----------------- ./configure '--prefix=/usr/local/mysql' '--localstatedir=/data/dbdata/' '--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock' '--with-charset=utf8' '--with-extra-charsets=complex' '--with-pthread' '--enable-thread-safe-client' '--with-ssl' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--with-plugins=partition, 在编译方式安装与部署mysql时,innodb_plugin,csv,写了一个shell脚本来自动完成mysql的安装过程,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jiaob/shell/9114.shtml

相关文章

风云图片

推荐阅读

返回Shell频道首页