Even with correct ownership, MySQL might fail to start up if there is other security software running on your system that manages application access to various parts of the file system. In this case, reconfigure that software to enable mysqld to access the directories it uses during normal operation.
Certain versions of MySQL add invalid hex values at the beginning of the my.ini configuration file. Deleting the first three hex values using a hex editor should resolve this issue. This occurs because of an issue with a script line. The line specifies that each file must have a unique ID, which then appends the byte order to mark the text file.
If you have a backup of the original my.ini file, you can copy the contents of this file and manually paste them onto the current my.ini to resolve this issue.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–