MYSQL could not start prompt: Default storage engine of InnoDB is not available solution

  • 2020-05-10 23:02:07
  • OfStack

my.ini (under linux /etc/ my.cnf) plus skip-innodb will do.
After I set it like this, there is no problem under linux. Today, I started MYSQL on my local machine winXP. It is indicated that it cannot start. Take a look at the error log for the mysql directory:
reference
090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available
090613 10:15:27 [ERROR] Aborting

090613 10:15:27 [Note] C:\www\mysql\bin\mysqld-nt: Shutdown complete

It is estimated that after adding parameters last time, 1 did not start up. It has been a long time since I used the native mysql.
default-storage-engine =INNODB. I set the default engine to INNODB, but I added skip-innodb. No wonder it doesn't work.

Change default-storage-engine to MYISAM, MYSQL starts OK!
Under skip-innodb, ibdata1,ib_logfile0,ib_logfile1 in the data directory are not needed and can be deleted.

After the test, when skip-innodb is not added, the three files are deleted, and the three files will be automatically created during startup. The log is as follows:
reference
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
090613 10:19:37 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
090613 10:19:37 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 24 MB
InnoDB: Database physically writes the file full: wait...
090613 10:19:38 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 24 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
090613 10:19:39 InnoDB: Started; log sequence number 0 0
090613 10:19:39 [Note] C:\www\mysql\bin\mysqld-nt: ready for connections.


Delete the three files and add skip-innodb to start the log:
reference

090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Normal shutdown

090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Shutdown complete

090613 10:30:17 [Note] C:\www\mysql\bin\mysqld-nt: ready for connections.
Version: '5.0.45' socket: '' port: 3306 Source distribution

Those three files will not be generated automatically.

Related articles: