MySQL Server 5.7.6 through 5.7.10: mysqld --initialize Does Not Allow Installation With InnoDB Files In Subdirectory Of Datadir: "--initialize specified but the data directory has files in it." or "'create' returned OS error 71." (Doc ID 2085363.1)

Last updated on FEBRUARY 12, 2017

Applies to:

MySQL Server - Version 5.7 to 5.7 [Release 5.7]
Information in this document applies to any platform.

Symptoms

When using myqsld --initialize to setup a new MySQL instance for MySQL 5.7.6 through 5.7.10, if the new instance is configured to have the InnoDB system tablespace and/or log files in a subdirectory of the data directory, the installation fails.

The error depends on whether the InnoDB directory is created before the attempt to initialize MySQL.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms