将MySQL数据移动到另一个驱动器

时间:2016-05-09 08:51:44

标签: mysql mysql5

我想将C:\ProgramData\MySQL\MySQL Server 5.5\data中的数据移至E:\Mysql5Data

  1. 停止MySQL5服务
  2. my.ini文件中的“datadir”值更改为E:/Mysql5Data
  3. 启动MySQL5服务
  4. 启动MySQL时出现1067 Process terminated unexpectedly错误。

    更新

    日志

    160509 13:18:56 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\DGNLWEBBIP01.lower-test
    160509 13:18:56 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\DGNLWEBBIP01.lower-test
    160509 13:18:56 [Note] Plugin 'FEDERATED' is disabled.
    160509 13:18:56 InnoDB: The InnoDB memory heap is disabled
    160509 13:18:56 InnoDB: Mutexes and rw_locks use Windows interlocked functions
    160509 13:18:56 InnoDB: Compressed tables use zlib 1.2.3
    160509 13:18:56 InnoDB: Initializing buffer pool, size = 128.0M
    160509 13:18:56 InnoDB: Completed initialization of buffer pool
    160509 13:18:56  InnoDB: Operating system error number 5 in a file operation.
    InnoDB: The error means mysqld does not have the access rights to
    InnoDB: the directory. It may also be you have created a subdirectory
    InnoDB: of the same name as a data file.
    InnoDB: File name .\ibdata1
    InnoDB: File operation call: 'create'.
    InnoDB: Cannot continue operation.
    

    解决方案:

    Murray's comment

0 个答案:

没有答案