The innodb_system data file 'ibdata1' must be writable
安装mysql-5.7.32数据库时,MySQL无法启动 Active: deactivating (stop-sigterm) (Result: exit-code)
查看配置文件中的日志存储位置:
view /etc/my.cnf
查看日志存储文件位置:/var/log/mysqld.log
文件错误提示:The innodb_system data file 'ibdata1' must be writable
赋予my.cnf配置文件中datadir对应目录的权限,执行如下命令:
chmod -R 777 /var/lib/mysql
再次重启,结果如下: