mysql - mysqld pid文件错误后gitlab无法启动,以及innodb文件大小问题

标签 mysql gitlab

自上次重启以来,我的 gitlab 安装无法启动。

mysqld.pid 文件也不在那里。

131111 18:20:57 mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
131111 18:20:57 mysqld_safe Starting mysqld.bin daemon with databases from /opt/bitnami/mysql/data
131111 18:20:58 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended

我查看了 mysqld.log

tail -f mysql/data/mysqld.log 
131111 18:30:24 InnoDB: Using Linux native AIO
131111 18:30:24 InnoDB: Initializing buffer pool, size = 128.0M
131111 18:30:24 InnoDB: Completed initialization of buffer pool
131111 18:30:24  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ib_logfile0
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
131111 18:30:24 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended

这是否意味着,mysqld 用户没有访问/opt/bitnami/mysql/data 的权限

我现在也看到了这个错误

tail -f mysql/data/mysqld.log 
InnoDB: Error: log file ./ib_logfile1 is of different size 0 327680 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
131111 18:34:57 [ERROR] Plugin 'InnoDB' init function returned error.
131111 18:34:57 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131111 18:34:57 [ERROR] Unknown/unsupported storage engine: InnoDB
131111 18:34:57 [ERROR] Aborting

131111 18:34:57 [Note] /opt/bitnami/mysql/bin/mysqld.bin: Shutdown complete

131111 18:34:57 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended

最佳答案

我自己修的

  1. 删除了所有 ib_logfiles 0 和 1
  2. 在 my.cnf 中输入日志文件大小为 innodb_log_file_size=125M

并使用 sh ctlscript.sh start 重新启动服务器,它启动得非常顺利。

关于mysql - mysqld pid文件错误后gitlab无法启动,以及innodb文件大小问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19906168/

相关文章:

MySql 给出错误表不存在但它确实存在

mysql - 当使用星号(通配符)运算符执行搜索时,MySQL 将如何使用 FT 索引?

gitlab 连接拒绝 ssh 端口 22 和 443

gitlab - 为什么 gitlab 在提交时运行重复的管道?

docker - 本地 gitlab-runner - 没有这样的命令 sh

php - 对禁止时间为 "datetime"的 mysql 数据库实现永久禁止。如何?

php - 问题返回数据库搜索的总和或总数

mysql - 我可以从集群中的多个mysql服务器上更新、插入和删除记录吗

django - 在 Gitlab 上为 django 项目设置 CI/CD

gitlab - 如果源存储库是 Gitlab,如何使用 AWS CodePipeline 进行 CICD