linux安装mysql-5.7.20-linux-glibc2.12-x86_64出错

出错提示:[root@linuxprobe support-files]# ./mysql.server start
Starting MySQL.2017-10-26T08:20:34.772472Z mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
ERROR! The server quit without updating PID file (/var/lib/mysql/linuxprobe.com.pid).

这个提示日志文件不存在,所以写不了安装日志,所以安装不了,确定下自己是否有系统安装权限,比如是不是用root账户登录的。
个人建议使用root账户登录服务器,然后通过yum指令安装mysql等环境工具

权限及配置问题,这两个也许对你有帮助
http://m.jb51.net/article/33810.htm

http://m.jb51.net/article/27768.htm

这个提示日志文件不存在,所以写不了安装日志,所以安装不了,确定下自己是否有系统安装权限,比如是不是用root账户登录的。
个人建议使用root账户登录服务器,然后通过yum指令安装mysql等环境工具

我通过vim etc/my.cnf中打开:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

Settings user and group are ignored when systemd is used.

If you need to run mysqld under a different user or group,

customize your systemd unit file for mariadb according to the

instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid

#

include all files from the config directory

#
!includedir /etc/my.cnf.d
楼上的高手你帮我看看我这里是不是有/var/log/mariadb/mariadb.log文件了呀,可以进一步帮我分析问题出在哪里么?

把mariadb删了就好

rpm -qa|grep -i mariadb-libs

rpm -e mariadb-libs-5.5.44-2.el7.centos.x86_64 --nodeps