linux 最大mysql mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz

Posted workharder

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 最大mysql mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz相关的知识,希望对你有一定的参考价值。

下边连接:https://www.cnblogs.com/zero-gg/p/8875598.html,大神的结晶啊,我就悄悄的留下来自己用,链接缺少的部分补充下:

1.包的下载方法:wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz

2.以下是报错:

  (1)启动报错:

    [root@localhost mysql]# service mysqld start
    Starting MySQL.Logging to ‘/usr/local/mysql/data/localhost.localdomain.err‘.
    2019-01-11T15:41:22.170582Z mysqld_safe Directory ‘/var/lib/mysql‘ for UNIX socket file don‘t exists.
    ERROR! The server quit without updating PID file (/usr/local/mysql/data/localhost.localdomain.pid)

      修复方法:

    目录不存在,创建这个目录,并且将目录赋予给mysql用户
    mkdir /var/lib/mysql
    chown -R mysql /var/lib/mysql
    然后再启动

  (2)报错:-bash: mysql: command not found

    修复:https://blog.csdn.net/myroncham/article/details/82892973

  (3)报错:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

      修复:https://blog.csdn.net/vv19910825/article/details/82979563

 

以上是关于linux 最大mysql mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz的主要内容,如果未能解决你的问题,请参考以下文章

linux 安装MySql 5.7.20

[mysql]linux安装mysql5.7

CentOS 7 Linux 卸载/安装 MySQL mysql 5.7

mysql_linux(centos7 mysql 5.7.19)

linux 7.4 采用RPM安装mysql-5.7.20

Linux mysql-5.7.11 Setup