unijun 发表于 2018-10-4 09:20:35

mysql错误

  错误一

  InnoDB: Error: log file /usr/local/mysql/var/ib_logfile0 is of different>  InnoDB: than specified in the .cnf file 0 268435456 bytes!
  解决方法:
  1、停止 mysql 服务
  2、在数据库目录删除 ib_logfile0 和 ib_logfile1 两个文件,这两个文件的大小和 innodb_log_file_size 设的值是一样大小的
  3、设置 innodb_log_file_size 值,例如innodb_log_file_size = 256M
  4、重启 mysql 服务,会自动创建这两个文件。

页: [1]
查看完整版本: mysql错误