1、问题描述:
linux 安装 mysql 后报错启动不了 Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/hadoop01.pid).
2、问题分析:
Step 1) 安装autoconf库
yum -y install autoconf
Step 2) 接着执行
/usr/bin/mysql_install_db --user=mysql
Step 3) 查看日志
/usr/sbin/mysqld: Can’t create/write to file ‘/tmp/ib10dBht’ (Errcode: 13 - Permission denied)
竟然是 '/tmp 路径权限不足,哈哈哈!!!
3、解决方案:
Step 1) 赋予权限
chmod -R 777 /tmp
Step 2) 数据库开启命令,就会成功啦!!!
service mysql start
• 由 ChiKong_Tam 写于 2021 年 3 月 9 日