Related Documentation Download this Manual
PDF (US Ltr) - 39.3Mb
PDF (A4) - 39.3Mb
PDF (RPM) - 38.5Mb
HTML Download (TGZ) - 11.0Mb
HTML Download (Zip) - 11.0Mb
HTML Download (RPM) - 9.7Mb
Man Pages (TGZ) - 214.5Kb
Man Pages (Zip) - 323.6Kb
Info (Gzip) - 3.6Mb
Info (Zip) - 3.6Mb
Excerpts from this Manual

data-directory-initialization-mysqld

This page has moved or been replaced. The new page is located here:

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

Please update any bookmarks that point to the old page.


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
  Posted by Ilguiz Latypov on May 10, 2016
I missed the my.cnf / my.ini encoding rule that interprets the back-slash character as an escape character.

It would make sense to emphasize this in my-default.ini, along with a suggestion to use forward-slashes instead of doubling back-slashes.
  Posted by Alex Kersha on August 6, 2016
For Windows users, after the first initialization of your MySQL instance, the terminal may open and close too quickly for you to see the return messages from the startup sequence. Check to make sure that the /data directory was created. Also, if successful and you used the --initialize parameter, there will be a "[computer name].err" file in the /data folder with the temporary one time use password for you to login as root for the first time.