-1

I use MySQL 5.2.36 CE. When I installed it, the software was installed to

C:\Program Files (X86)\MySQL

The database location was given to

D:\ABC\MySQL

I am hoping to change the database location to

D:\DEF\MySQL

Any quick way do it? I use a Windows 7 pro 64-bit machine.

Thanks and regards.

curious1
  • 13,281
  • 34
  • 116
  • 211

1 Answers1

1

Shutdown mysql, move the data directory to the new location, open my.cnf and change the value of "datadir" to the new path.

AcidReign
  • 474
  • 3
  • 6