1

自上次重新启动以来,我的 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
4

1 回答 1

1

我自己修好了

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

并使用 sh ctlscript.sh start 重新启动服务器,它开始就像一个魅力。

于 2013-11-11T13:14:16.290 回答