I'm moving data directory from D drive which has raid controller hard disk to C drive where OS installed on windows environment.
Here is the issues:
Stop Mysql server
open my.ini –> data directory -> "C drive path"
copy data directory folder to c drive folder
start mysql server
Will it work as this is innodb engines, I have heard we need to restore back as .sql files , copying raw file from one place to another doesn't work.
Is it true or do you have any other workaround as there is 600 GB data size?
Best Answer
You can try with below steps.
services.msc
, shutdown must be clean so that the instance flushes any pending changes to disk.C:\ProgramData\MySQL\MySQL Server 5.7
New Location:E:\MySQL
my.ini
file. I have commented old entry and added new one:#datadir=C:/ProgramData/MySQL/MySQL Server 5.7\Data
datadir=E:\MySQL\Data
services.msc