CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Centos6.5安装mysql-5.7.23大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

1.卸载系统自带mysq(没有忽略此步骤)   [[email protected] ~]$ rpm -qa|grep mysql   mysql-community-common-5.7.19-1.el6.x86_64   rpm -e --nodeps mysql-community-common-5.7.19-1.el6.x86_64 2.下载解压安装包   [[email protecte

1.卸载系统@L_843_0@mysq(没有忽略此步骤)

  [[email protected] ~]$ rpm -qa|grep MysqL

  MysqL-community-common-5.7.19-1.el6.x86_64

  rpm -e --nodeps MysqL-community-common-5.7.19-1.el6.x86_64

2.下载解压安装包

  [[email protected] apps]$ wget https://cdn.MysqL.com//Downloads/MysqL-5.7/MysqL-5.7.23-linux-glibc2.12-x86_64.tar.gz

  [[email protected] apps]$ tar -zxvf MysqL-5.7.23-linux-glibc2.12-x86_64

3.修改配置文件@H_874_34@

  @H_874_34@[[email protected] apps]$ cd MysqL-5.7.23-linux-glibc2.12-x86_64/support-files/

      [[email protected] support-files]$ vi MysqL.server

  

Centos6.5安装mysql-5.7.23

4.安装

  [[email protected] support-files]$ sudo cp MysqL.server /etc/init.d/MysqLd  

  [[email protected] support-files]$ cd ../bin/
  [@L_502_7@ bin]$ ./MysqLd --user=MysqL --basedir=/home/admin/apps/MysqL-5.7.23-linux-glibc2.12-x86_64 --datadir=/home/admin/data/MysqL/data --initialize  

Centos6.5安装mysql-5.7.23

@H_874_34@

  此步骤有可能报错:/bin/MysqLd: error while loading shared libraries: libaio.so.1: cAnnot open shared object file:@H_874_34@

  解决方案:sudo yum remove libnuma.so.1

       sudo  yum -y install numactl.x86_64

       yum install -y libaio 

5.启动MysqL服务

  [[email protected] bin]$ service MysqLd start

6.登录修改root密码

  

Centos6.5安装mysql-5.7.23

7.卸载

  

Centos6.5安装mysql-5.7.23

大佬总结

以上是大佬教程为你收集整理的Centos6.5安装mysql-5.7.23全部内容,希望文章能够帮你解决Centos6.5安装mysql-5.7.23所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。