栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

linux安装mysql8.0填坑日记

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

linux安装mysql8.0填坑日记

Linux中安装MySQL8.0填坑记录
    • 问题

从下载安装包到配置都没问题,然而到了启动就直接GG

问题

Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql80/data/localhost.localdomain.pid).
启动就一直报这个错误,然后查不出什么原因,查看日志发现可能是配置有问题,就修改配置,重新启动,还是这个问题.

[mysqld]
basedir=/usr/local/mysql80
datadir=/usr/local/mysql80/data
socket=/tmp/mysql.sock
pid-file=/usr/local/mysql80/data/mariadb.pid
port = 3306
max_connections=400
innodb_file_per_table=1
character_set_server=utf8
# 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

最后,直接删除data文件夹,重新初始化就可以了

https://blog.csdn.net/liurui50/article/details/105478422/

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/450770.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号