SantaMufasa
Technical User
My Unix admin requested that I move my existing MySQL data files (of all varieties...INNODB's and any others) from their current locations to another file system on the same machine. How do I do this in MySQL?
[In Oracle, we would:
1) shut down the database instance
2) physically mv the data files from their current location to the target location.
3) startup the database (but not open the database, just "mount" it, which means that Oracle has opened the database control files [that contain file-location names])
4) issue an:
So, does anyone know the functionally similar commands for MySQL?]
Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
[In Oracle, we would:
1) shut down the database instance
2) physically mv the data files from their current location to the target location.
3) startup the database (but not open the database, just "mount" it, which means that Oracle has opened the database control files [that contain file-location names])
4) issue an:
Code:
ALTER DATABASE RENAME
'old_file-1','old_file-2',...'old_file-n'
TO
'new_file-1','new_file-2',...'new_file-n';
ALTER DATABASE OPEN;
Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.