Chinaunix首页 | 论坛 | 博客
  • 博客访问: 371809
  • 博文数量: 114
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1219
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-07 21:23
文章分类

全部博文(114)

文章存档

2018年(1)

2017年(5)

2016年(87)

2015年(21)

我的朋友

分类: 系统运维

2016-07-21 17:30:27


  1. MySQL Plugin 'InnoDB' init function returned error.
  2. . . 在MySQL的配置文件中,设置InnoDB的相关优化参数,发现MySQL无法正常的启动,错误日志中给出了如下的信息:


  3. 引用
  4. 00703 09:28:53 mysqld_safe Starting mysqld daemon with databases from /root/sandboxes/spider_main/data
  5. InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
  6. InnoDB: than specified in the .cnf file 0 134217728
  7. 100703 9:28:54 [ERROR] Plugin 'InnoDB' init function returned error.
  8. 100703 9:28:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  9. 100703 9:28:54 [Note] Found 1 prepared transaction(s) in SPIDER
  10. 100703 9:28:54 [Warning] Found 1 prepared XA transactions
  11. 100703 9:28:54 [Note] Event Scheduler: Loaded 0 events
  12. 100703 9:28:54 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: ready for connections.
  13. Version: '5.1.44' socket: '/tmp/mysql_sandbox5144.sock' port: 3306 Source distribution
  14. 100703 9:34:59 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: Normal shutdown




  15. 只要删除MySQL目录下的ib_logfile0和ib_logfile1两个文件,就可以解决问题了。


  16. mysqldump 备份数据的时候mysqldump: unknown option '--events'
  17. 最后发现mysqldump的路径不对,which mysqldump 查看路径
  18. 添加mysql的环境变量
  19. [root@light /]# tail -1 /etc/profile
  20. export PATH=/application/mysql/bin:$PATH
  21. [root@light4 /]# which mysqldump
  22. /application/mysql/bin/mysqldump


阅读(720) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~