Categories
Uncategorized

Initialize MySQL 8 Data Directory on Windows 10

When installing MySQL 8 on Windows 10 you will have to initialize the data directory. Run a CMD as administrator and paste the following in

"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --initialize-insecure --basedir="C:\Program Files\MySQL\MySQL Server 8.0" --datadir="C:\Program Files\MySQL\MySQL Server 8.0\data" --console

Without the data directory being in initialized you will get messages like:

  • “Failed to find valid data directory”
  • “Data Dictionary initialization failed”

Leave a Reply