zoukankan      html  css  js  c++  java
  • 1.linux6 x86-64 RPM包安装mysql5.7.20

    1. 注意版本和此次更新时间 2017-12-03  版本:mysql-5.7.20-1.el6.x86_64  环境:linux6.x

    2. ​官方下载地址:

      wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20-1.el6.x86_64.rpm-bundle.tar

    3. 解压:

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

    4. 卸载之前的版本

      rpm -qa | grep -i mysql

      rpm -e xxxxx [之前安装的版本] --nodeps 要卸载的mysql版本

    5. 按照步骤来安装就好

      1.rpm -ivh mysql-community-libs-5.7.20-1.el6.x86_64.rpm --nodeps --force

      2.rpm -ivh mysql-community-devel-5.7.20-1.el6.x86_64.rpm --nodeps --force

      3.rpm -ivh mysql-community-client-5.7.20-1.el6.x86_64.rpm  --nodeps --force

      4.rpm -ivh mysql-community-server-5.7.20-1.el6.x86_64.rpm  --nodeps --force

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

            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.默认提示需要输入校验码

    [root@xxxxxx tool]# rpm -ivh mysql-community-devel-5.7.20-1.el6.x86_64.rpm 

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

    解决:(去掉校验安装)

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

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

    [root@xxxxxx tool]# rpm -ivh mysql-community-devel-5.7.20-1.el6.x86_64.rpm  --nosignature

    error: Failed dependencies:

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

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

    解决:

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

    3.权限问题

  • 相关阅读:
    〖Linux〗Kubuntu设置打开应用时就只在打开时的工作区显示
    〖Linux〗Kubuntu, the application 'Google Chrome' has requested to open the wallet 'kdewallet'解决方法
    unity, dll is not allowed to be included or could not be found
    android check box 自定义图片
    unity, ios skin crash
    unity, Collider2D.bounds的一个坑
    unity, ContentSizeFitter立即生效
    类里的通用成员函数应声明为static
    unity, Gizmos.DrawMesh一个坑
    直线切割凹多边形
  • 原文地址:https://www.cnblogs.com/subtract/p/6473207.html
Copyright © 2011-2022 走看看