1.RPM包安装mysql5.7

  1. ?官方下载地址:

    wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.17-1.el6.x86_64.rpm-bundle.tar

  2. 解压:

    tar xvf mysql-5.7.17-1.el6.x86_64.rpm-bundle.tar

  3. 卸载之前的版本

    rpm -qa | grep -i mysql

    rpm -e --nodeps 要卸载的mysql版本

  4. 按照步骤来安装就好

    1.rpm -ivh mysql-community-libs-5.7.17-1.el6.x86_64.rpm --nosignature

    2.rpm -ivh mysql-community-devel-5.7.17-1.el6.x86_64.rpm  --nosignature

    3.rpm -ivh mysql-community-client-5.7.17-1.el6.x86_64.rpm  --nosignature

    4.rpm -ivh mysql-community-server-5.7.17-1.el6.x86_64.rpm  --nosignature

  5. 修改密码 (有点特殊 )

1.找到my.cnf |  本机  /etc/my.cnf

2.[mysqld]#下添加

skip-grant-tables=1 #不用验证

3.开启mysql /etc/init.d/mysqld start|本机默认地址

        4.进入并修改(依次命令)

?        1. mysql -uroot -p;

?        2.use mysql

?        3.update user set authentication_string = password(‘123456‘), password_expired = ‘N‘, password_last_changed = now() where user = ‘root‘;

?     ?5.my.cnf |  本机  /etc/my.cnf 里面删除skip-grant-tables=1

    ?6.测试

?    mysql -uroot -p123456 -e "show databases;";

?7.OK收工;



遇到的错误总结:

1.默认提示需要输入校验码

[[email protected] tool]# rpm -ivh mysql-community-devel-5.7.17-1.el6.x86_64.rpm

warning: mysql-community-devel-5.7.17-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

解决:(去掉校验安装)

rpm -ivh mysql-community-devel-5.7.17-1.el6.x86_64.rpm --nosignature

2.木有安装 mysql-community-libs-5.7.17-1.el6.x86_64.rpm

[[email protected] tool]# rpm -ivh mysql-community-devel-5.7.17-1.el6.x86_64.rpm  --nosignature

error: Failed dependencies:

libmysqlclient.so.20()(64bit) is needed by mysql-community-devel-5.7.17-1.el6.x86_64

mysql-community-libs(x86-64) >= 5.7.9 is needed by mysql-community-devel-5.7.17-1.el6.x86_64

解决:

rpm -ivh mysql-community-libs-5.7.17-1.el6.x86_64.rpm  --nosignature

时间: 2024-09-30 18:10:34

1.RPM包安装mysql5.7的相关文章

Salt之CentOS7.5使用RPM包安装MySQL5.7.22

手动安装参考CentOS7.5使用RPM包安装MySQL5.7.22 目录结构为 install.sls文件 #按顺序分别安装commin libs client server #避免冲突安装common前需要卸载mysql-libs mysql-common-install: file.managed: - name: /opt/mysql-community-common-5.7.22-1.el7.x86_64.rpm - source: salt://mysql/files/mysql-c

CentOS6.5系统下RPM包安装MySQL5.6

From:http://www.linuxidc.com/Linux/2015-04/116003.htm 1.查看操作系统相关信息. [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m [[email protected] ~]# uname -a Linux linuxidc 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UT

MySQL数据库系列之Centos6.5系统下RPM包安装MySQL5.6

查看操作系统相关信息. [[email protected]_db1 ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m [[email protected]_db1 ~]# uname -a Linux bj_db1 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 2.创建需要下载rpm软

CentOS6.5系统下RPM包安装MySQL5.6(转)

1.查看操作系统相关信息. [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m [[email protected] ~]# uname -a Linux linuxidc 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 2.创建需要下载rpm软件包的目

centos7.2下安装mysql5.7,使用rpm包安装

环境: CentOS Linux release 7.2.1511 (Core) mysql-5.7.18 1 安装前需要先卸载mariadb-lib [[email protected] ~]# rpm -qa|grep mariadb mariadb-libs-5.5.44-2.el7.centos.x86_64 [[email protected] ~]# rpm -e mariadb-libs-5.5.44-2.el7.centos.x86_64 --nodeps 2 到官网去下载最新的

无外网情况下RPM方式安装MySQL5.6

RPM方式安装MySQL5.6 a. 检查MySQL及相关RPM包,是否安装,如果有安装,则移除(rpm –e 名称) 1 [[email protected] ~]# rpm -qa | grep -i mysql 2 mysql-libs-5.1.66-2.el6_3.x86_64 3 [[email protected] ~]# yum -y remove mysql-libs* b. 下载Linux对应的RPM包,如:CentOS6.4_64对应的RPM包,如下:这里给出我下载好的包,官

CentOS下以RPM方式安装MySQL5.5

首先去mySQL官网下载页面: http://dev.mysql.com/downloads/mysql/#downloads Select Platform 选择  Oracle & Red Hat Linux 4 & 5 分别下载以下三个文件(由于我的机器是32位,下面是32位版本的包,如果你的机器是64位的请下载64位版本): 1. Red Hat & Oracle Linux 5 (x86, 32-bit), RPM Package MySQL Server 2. Red

MySQL之——CentOS下以RPM方式安装MySQL5.5

转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46507735 首先去mySQL官网下载页面: http://dev.mysql.com/downloads/mysql/#downloads Select Platform 选择  Oracle & Red Hat Linux 4 & 5 分别下载以下三个文件(由于我的机器是32位,下面是32位版本的包,如果你的机器是64位的请下载64位版本): 1. Red Hat &a

centos7 RPM方式安装MySQL5.7

centos7 RPM方式安装MySQL5.7 1.下载Linux对应的RPM包,CentOS7对应的RPM包,如下: [[email protected] soft]# unzip mysql-5.7-centos7.zip  Archive:  mysql-5.7-centos7.zip  extracting: mysql-commercial-client-5.7.16-1.1.el7.x86_64.rpm    extracting: mysql-commercial-embedded