zoukankan      html  css  js  c++  java
  • mysql5.7.12/13在安装新实例时报错: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

    .bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx 

    然后 .bin/mysqld_safe --defaults-file=xxx --user=mysql & 抛错:

    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!

    解决办法:.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx --innodb-data-file-path=ibdata1:1G:autoextend

    原因:配置文件my.cnf中指定的innodb-data-file-path 跟默认的不同

  • 相关阅读:
    yii2之依赖注入与依赖注入容器
    MySQL查询性能优化
    MySQL索引(2)
    go es
    es数据操作入门
    es环境搭建
    gRPC接入etcd
    etcd简单介绍
    Go调用NSQ简单实践
    NSQ快速入门实践
  • 原文地址:https://www.cnblogs.com/janey/p/8065056.html
Copyright © 2011-2022 走看看