Re: Windows mysqld: Failed to find valid data directory
Posted by: Dave Atherton
Date: March 19, 2019 04:36PM

OK, I eventually discovered that the installer put the my.ini file in a place where mysqld does not automatically look. After copying my.ini from "\ProgramData\MySQL\MySQL Server 8.0" to "\Program Files\MySQL\MySQL Server 8.0", I got a different error:
[ERROR] Found option without preceding group in config file C:\Program Files\MySQL\MySQL Server 8.0\my.ini at line 1.

After some examination and experiments, I discovered that the installed my.ini was in UTF-8 format while mysqld apparently requires ANSI format. I used Notepad to convert and now, it launches.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Windows mysqld: Failed to find valid data directory
18718
March 19, 2019 04:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.