My Oracle Support Banner

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 MARCH 21, 2019

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.