InnoDB: Attempted to open a previously opened tablespace

基于docker下的mysql, 一直运行的好好的, 而且早上也还运行正常 突然下午mysql就停止无法启动了.


  1. Open my.ini (my.cnf on linux-based systems and Mac)
  2. Look for [mysqld]
  3. Just below [mysqld] insert innodb_force_recovery = 1
  4. Start MySQL Service
  5. Stop MySQL Service
  6. Remove the line from my.ini (innodb_force_recovery = 1)
  7. Start MySQL Service

laradock

        - ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d #335 line
        - ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf

Warning: World-writable config file '/etc/mysql/conf.d/my.cnf' is ignored 权限过大 sudo chmod ./mysql/my.cnf

相关资料

InnoDB: Attempted to open a previously opened tablespace
提示/etc/my.cnf 被忽略的问题处理

发表评论