I am unable to restart the server after changing the default datadir
from C:/ProgramData/MySQL/MySQL Server 5.7\Data
to D:/Data
.
- I changed
datadir
todatadir="D:/Data"
- Then I stopped
mysql
- Copied the
Data
directory toD:/
- Attempted to restart the server
- Unable to start
What could be the reason for it?
Error snapshot:
However, it works fine if the original datadir path is restored.