【问题标题】:Mysql server is not getting started on Amazon ec2Mysql 服务器未在 Amazon ec2 上启动
【发布时间】:2016-06-29 16:56:55
【问题描述】:

我已经在 ec2 AMI 上安装了 mysql 服务器。突然停止工作的mysql服务器并且它没有开始。 这里是mysql log

160629  4:28:37 [Note] /usr/libexec/mysql55/mysqld (mysqld 5.5.46) starting as process 3059 ...
160629  4:28:37 [Note] Plugin 'FEDERATED' is disabled.
160629  4:28:37 InnoDB: The InnoDB memory heap is disabled
160629  4:28:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160629  4:28:37 InnoDB: Compressed tables use zlib 1.2.8
160629  4:28:37 InnoDB: Using Linux native AIO
160629  4:28:37 InnoDB: Initializing buffer pool, size = 512.0M
160629  4:28:37 InnoDB: Completed initialization of buffer pool
160629  4:28:37 InnoDB: highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/error-creating-innodb.html
160629  4:28:37 [ERROR] Plugin 'InnoDB' init function returned error.
160629  4:28:37 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160629  4:28:37 [ERROR] Unknown/unsupported storage engine: InnoDB
160629  4:28:37 [ERROR] Aborting

160629  4:28:37 [Note] /usr/libexec/mysql55/mysqld: Shutdown complete

160629 04:28:37 mysqld_safe mysqld from pid file      /var/run/mysqld/mysqld.pid ended

以下是我尝试过的方法:

1) 将 EC2 t2.micro 升级到 t2.medium。

2) 在 my.cnf 中增加了innodb_buffer_pool_size

3) 重命名ib_logfile0ib_logfile1

请建议我下一步应该做什么来启动 mysql。

编辑:

Sudo free -m

             total       used       free     shared    buffers     cached
Mem:          3954        149       3805          0          9         86
-/+ buffers/cache:         53       3901

编辑:

只有卸载mysql并重新安装的解决方案吗? 如果是,那么如何在mysql中保留已经创建的数据库?请提出建议。

【问题讨论】:

  • 我已将服务器从 t2.micro 升级到 t2.medium,因此它有 4GB 内存,可用内存为 3805

标签: mysql amazon-web-services amazon-ec2 innodb amazon-ami


【解决方案1】:

请浏览您的错误日志中提供的以下链接。 它已经提到了解决运行时异常的某些步骤。您可以交叉检查并继续。如果没有任何帮助,您可以选择卸载。

http://dev.mysql.com/doc/refman/5.5/en/error-creating-innodb.html

【讨论】:

  • 我已经交叉验证了这些步骤似乎一切正常。
猜你喜欢
  • 2021-09-11
  • 1970-01-01
  • 2015-05-25
  • 2016-06-08
  • 1970-01-01
  • 2013-05-30
  • 2014-01-27
  • 2012-03-22
  • 1970-01-01
相关资源
最近更新 更多