码迷,mamicode.com
首页 > 数据库 > 详细

MYSQL三种安装方式--rpm包安装

时间:2017-07-30 10:23:20      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:numa   安装   needed   bash   之间   install   bin   rpm   blog   

1. 首先检查机器里是否已经存在MySQL 

$ rpm -qa |  grep mysql

2. 去官网下载相应的rpm包:https://dev.mysql.com/downloads/mysql/

mysql-community-common-5.7.19-1.el6.x86_64.rpm
mysql-community-client-5.7.19-1.el6.x86_64.rpm
mysql-community-server-5.7.19-1.el6.x86_64.rpm
mysql-community-libs-5.7.19-1.el6.x86_64.rpm

3. 上传到/usr/local/src文件夹,进行安装mysql

 

# 按照以下顺序进行安装,因为它们之间存在依赖关系
common --> libs --> clients --> server

  

$ rpm -ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm

$ rpm -ivh mysql-community-libs-5.7.19-1.el6.x86_64.rpm

$ rpm -ivh mysql-community-clients-5.7.19-1.el6.x86_64.rpm

$ rpm -ivh mysql-community-server-5.7.19-1.el6.x86_64.rpm

 

!!!这里出现的错误

# error: Failed dependencies:         libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64         libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64         libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 

解决方法:

$ yum install -y numactl

 

4. 安装好后,可以去检查是否存在MySQL的配置文件或者MySQL的命令在/usr/bin下

#mysql配置文件
$ ls /etc/my.cnf

# mysql命令
$ cd /usr/bin/
$ ls | grep mysql

  

$ /etc/init.d/mysqld start
$ ps aux|grep mysqld 

  

  

MYSQL三种安装方式--rpm包安装

标签:numa   安装   needed   bash   之间   install   bin   rpm   blog   

原文地址:http://www.cnblogs.com/frankielf0921/p/7258137.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!