Reputation: 13
my query is : ALTER TABLE book DATA DIRECTORY = "/dev/book"; and executed it but i did not see any file in '/dev/book' path.
can any one help me? thanks !
Upvotes: 0
Views: 408
Reputation: 1750
You can:
Stop mysql with innodb_fast_shutdown=0
In
/usr/local/mysql/my.cnf
add innodb_directories="/home/mysql/new_location;"
Move table files from current directory to new directory (as example: /home/mysql/new_location
)
Start up Mysql server.
Upvotes: 0