这里安装我用的的是MySQL二进制包,主要减少编译安装的时间,当然快的还有yum的安装方式。
创新互联成立于2013年,先为岳塘等服务建站,岳塘等地企业,进行企业商务咨询服务。为岳塘企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。
mysql个版本下载地址:http://mirrors.sohu.com/mysql/
yum install -y perl-Module-Install.noarch libaio*
tar xf mysql-5.6.34-linux-glibc2.5-x86_64.tar.gz -C /usr/local/src/
cd /usr/local/src/mysql-5.6.34-linux-glibc2.5-x86 ln -sv /usr/local/src/mysql-5.6.34-linux-glibc2.5-x86_64 /usr/local/mysql cd /usr/local/mysql/
useradd mysql -s /sbin/nologin chown -R mysql.mysql ./* –R
mkdir /data/mysql && chown mysql.mysql /data/mysql –R
/usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/data/mysql --basedir=/usr/local/mysql/
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql cp /usr/local/mysql/my.cnf /etc/my.cnf
ln -sv /usr/local/mysql/bin/mysql /usr/bin/
/etc/init.d/mysql restart
[root@localhost ~]# /usr/local/mysql/bin/mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 Server version: 5.6.34 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
新闻标题:Centos7.1部署mysql-5.6.34(笔记)
网站URL:https://www.cdcxhl.com/article8/ggjjop.html
成都网站建设公司_创新互联,为您提供网站内链、静态网站、定制开发、品牌网站设计、建站公司、ChatGPT
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联