当前位置 : 主页 > 网络编程 > 其它编程 >

一键部署mysql5.6.txt

来源:互联网 收集:自由互联 发布时间:2023-07-02
一键部署----mysql5.6.txt!binbashcdvarrunrm-rfyum.pidread-p请输入mysql源码包的绝对路径ccd$cyuminstall-yncu 一键部署----mysql5.6.txt !/bin/bashcd /var/runrm -rf yum.pidread -p "请输入mysql源码包的绝对路径" ccd $cy
一键部署----mysql5.6.txt!binbashcdvarrunrm-rfyum.pidread-p请输入mysql源码包的绝对路径ccd$cyuminstall-yncu 一键部署----mysql5.6.txt

!/bin/bashcd /var/runrm -rf yum.pidread -p "请输入mysql源码包的绝对路径" ccd $cyum install -y ncurses-devel autoconf cmaketar xzvf mysql-5.6.26.tar.gzcd mysql-5.6.26/cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DSYSCOnFIDIR=/etc -DMYSQL_DATADIR=/home/mysqI/ -DMYSQL_UNIX_ADDR=/home/mysql/mysql.sockmake && make install\cp support-files/my-default.cnf /etc/my.cnfcp support-files/mysql.server /etc/init.d/mysqldchmod 755 /etc/init.d/mysqldchkconfig --add /etc/init.d/mysqldcd /etc/init.d/chkconfig --level 35 mysqld onecho "PATH=$PATH:/usr/local/mysql/bin" >> /etc/profilesource /etc/profileuseradd -s /sbin/nologin mysqlchown -R mysql.mysql /usr/local/mysql/cd /usr/local/mysql/scripts//usr/local/mysql/scripts/mysql_install_db --user=mysql --ldata=/var/lib/mysql --basedir=/usr/local/mysql/ --datadir=/home/mysql/sed -i ‘46cbasedir=/usr/local/mysql‘ /etc/init.d/mysqldsed -i ‘47cdatadir=/home/mysql‘ /etc/init.d/mysqldservice mysqld startecho "mysql已安装成功"

一键部署----mysql5.6.txt

【本文由:大丰网站制作 http://www.1234xp.com/dafeng.html 复制请保留原URL】
上一篇:mysqlix锁_MySQL的锁
下一篇:没有了
网友评论