mysqld --initialize Should Also Use --no-defaults (Doc ID 2300452.1)

Last updated on SEPTEMBER 03, 2017

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Goal

To avoid any possible issues while  using mysqld --intiialize

 

https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

( as of versions 5.7.6 + )

 

the --no-defaults option should be used.

It could be possible that , eg error-log or datadir variables be picked up from the default config file PATHs on systems where an existing mysqld is installed causing confusion for the admin.

 

Solution

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