2016-06-29 113 views
-1

我已经在ec2 AMI上安装了mysql服务器。突然停止工作的MySQL服务器,并没有开始。 这是mysql logMysql服务器在亚马逊ec2上未启动

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

3)重命名ib_logfile0ib_logfile1

请有什么建议下一步应该怎么做来启动mysql增加innodb_buffer_pool_size

编辑:

Sudo free -m

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

编辑:

仅在那里卸载MySQL和重新安装的解决方案? 如果是,那么如何保留已经创建的数据库在mysql中?请建议。

+0

我从t2.micro升级服务器t2.medium所以它有4GB内存和可用内存是'3805' –

回答

0

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

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

+0

我有交叉验证这些步骤看起来一切正常。 –