https://blog.csdn.net/wjr1229/article/details/127997181。
就是停止mysql的服务。
然后再my.ini修改数据库的存储位置即可。
指令是:net stop MySQL57