加入收藏 | 设为首页 | 会员中心 | 我要投稿 衡阳站长网 (https://www.0734zz.cn/)- 数据集成、设备管理、备份、数据加密、智能搜索!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL 5.6.38在RedHat 6.5上经过RPM包安装

发布时间:2022-06-30 23:47:36 所属栏目:MySql教程 来源:互联网
导读:MySQL 5.6.38在RedHat 6.5上经过RPM包安装: 一、安装环境 1、操作系统版本:Red Hat Enterprise Linux Server release 6.5 (Santiago) 2、Mysql版本:MySQL-5.6.38-1.el6.x86_64.rpm-bundle.tar 二、安装说明 网上不少资料在使用rpm包安装Mysql 5.6之前,都
        MySQL 5.6.38在RedHat 6.5上经过RPM包安装:

  一、安装环境
 
  1、操作系统版本:Red Hat Enterprise Linux Server release 6.5 (Santiago)
 
  2、Mysql版本:MySQL-5.6.38-1.el6.x86_64.rpm-bundle.tar
 
  二、安装说明
 
  网上不少资料在使用rpm包安装Mysql 5.6之前,都会先卸载系统自带的mysql-libs,但有的资料是用yum remove mysql,但这样会把依赖mysql-libs的8个包也一同卸载,其中就包括postfix、crontab等软件包,造成了非预期目的的卸载,有的资料就使用rpm -e --nodeps mysql-libs来避免卸载其他依赖mysql-libs的软件包,但是也并非完全正确的做法,Mysql官方提供的Mysql-shared-compat正是替代mysql-libs的rpm包,应先安装此包,再单独卸载mysql-libs,官方说明如下:
 
  三、安装过程
 
  1、首先安装一下Mysql-shared-compat,再单独卸载mysql-libs。
 
  MySQL 5.6.38在RedHat 6.5上通过RPM包安装
 
  2、安装mysql-server,根据提示安装完成后的随机密码在/root/.mysql_secret,并且可以运行安全配置向导/usr/bin/mysql_secure_installation,还有配置文件在/usr/my.cnf(按习惯一般拷贝到/etc/my.cnf)
 
  [root@node01
  mysqlrpm]# rpm -ivh MySQL-server-5.6.38-1.el6.x86_64.rpm
  warning:
  MySQL-server-5.6.38-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID
  5072e1f5: NOKEY
 
  Please report any problems at http://bugs.mysql.com/
  
  The latest information about MySQL is available on the web at http://www.mysql.com
  
  Support MySQL by buying support/licenses at http://shop.mysql.com
  
  New default config file was created as /usr/my.cnf and will be used by
  default by the server when you start it.
  You may edit this file to change server settings

(编辑:衡阳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读