mysql安装小记录

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql安装小记录相关的知识,希望对你有一定的参考价值。

mysql:
安装:权限:
chown -R mysql:mysql mysql/

出错:

./mysql.server start
Starting MySQL.Logging to ‘/home/mysql/data/izm5e5xf4ylewnqwanhz1mz.err‘.
2018-06-29T05:32:57.435169Z mysqld_safe Directory ‘/var/lib/mysql‘ for UNIX socket file don‘t exists.
The server quit without updating PID file (/home/mysql/data[FAILED]f4ylewnqwanhz1mz.pid).
[[email protected] support-files]# mkdir /var/lib/mysql

解决:

mkdir /var/lib/mysql

出错:

./mysql.server start
Starting MySQL.Logging to ‘/home/mysql/data/izm5e5xf4ylewnqwanhz1mz.err‘.
...The server quit without updating PID file (/home/mysql/d[FAILED]e5xf4ylewnqwanhz1mz.pid).
[[email protected] support-files]# chmod 777 /var/lib/mysql
[[email protected] support-files]#

解决:
chmod 777 /var/lib/mysql
[[email protected] support-files]#
[[email protected] support-files]#
[[email protected] support-files]#
[[email protected] support-files]# ./mysql.server start
Starting MySQL. [ OK ]
[[email protected] support-files]#

以上是关于mysql安装小记录的主要内容,如果未能解决你的问题,请参考以下文章

mysql安装小记

Ubuntu 16.04 安装Mysql 5.7 踩坑小记

Manjaro安装mysql-5.7折腾小记

小记:云服务器安装mysql遇到的问题

MySQL 社区版 安装小记

linux mysql 5.7.17 编译安装小记