首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在运行Redhat 6.5的EC2中安装MySQL 5.6后,无法启动mysqld

在运行Redhat 6.5的EC2中安装MySQL 5.6后,无法启动mysqld
EN

Stack Overflow用户
提问于 2014-01-13 07:31:46
回答 3查看 10.1K关注 0票数 3

我已经从亚马逊EC2实例中删除了默认的MySQL 5.1,并按照以下网址中的说明安装了MySQL 5.6:

http://sharadchhetri.com/2013/12/26/install-mysql-server-5-6-in-centos-6-x-and-red-hat-6-x-linux/

虽然已安装,但无法启动mysqld,以下是日志文件:

代码语言:javascript
复制
140112 23:16:53 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2014-01-12 23:16:54 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-01-12 23:16:54 7601 [Note] Plugin 'FEDERATED' is disabled.
2014-01-12 23:16:54 7601 [Note] InnoDB: The InnoDB memory heap is disabled
2014-01-12 23:16:54 7601 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-01-12 23:16:54 7601 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-01-12 23:16:54 7601 [Note] InnoDB: Using Linux native AIO
2014-01-12 23:16:54 7601 [Note] InnoDB: Not using CPU crc32 instructions
2014-01-12 23:16:54 7601 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-01-12 23:16:54 7601 [Note] InnoDB: Completed initialization of buffer pool
2014-01-12 23:16:54 7601 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2014-01-12 23:16:54 7601 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2014-01-12 23:16:54 7601 [ERROR] Plugin 'InnoDB' init function returned error.
2014-01-12 23:16:54 7601 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-01-12 23:16:54 7601 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-01-12 23:16:54 7601 [ERROR] Aborting

2014-01-12 23:16:54 7601 [Note] Binlog end
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'partition'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'BLACKHOLE'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'ARCHIVE'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_METRICS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMPMEM'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_CMP'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_LOCKS'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'INNODB_TRX'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'MyISAM'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'MRG_MYISAM'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'CSV'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'MEMORY'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'sha256_password'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'mysql_old_password'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'mysql_native_password'
2014-01-12 23:16:54 7601 [Note] Shutting down plugin 'binlog'
2014-01-12 23:16:54 7601 [Note] /usr/sbin/mysqld: Shutdown complete

解决这个问题的步骤是什么?谢谢。

EN

回答 3

Stack Overflow用户

发布于 2014-11-08 00:44:02

尝试将以下内容添加到my.cnf:

代码语言:javascript
复制
innodb_data_file_path = ibdata1:10M:autoextend

这应该可以解决这个问题

票数 14
EN

Stack Overflow用户

发布于 2015-01-11 16:50:53

重新安装MySQL可能会解决此问题。

代码语言:javascript
复制
yum remove -y mysql mysql-server
rm -rf /var/lib/mysql/
yum install mysql mysql-server
service mysqld start
票数 5
EN

Stack Overflow用户

发布于 2014-02-22 01:05:02

正如您所说,mysql 5.1已被移除,并安装了新的mysql版本。问题似乎出在my.cnf文件中。检查与my.cnf相关的parameters.Might,该my.cnf文件仍具有MySQL 5.1参数。

向Sharad致敬

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21081686

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档