I am trying to change the data directory of a MySQL table using the following command. I am trying in windows. But it is not working. Can somebody tell me the reason?
CREATE TABLE clients
(
client_id INT AUTO_INCREMENT KEY,
client_name VARCHAR(75),
telephone CHAR(15)
)
DATA DIRECTORY = 'e:\data\mysql';
The table is created. But it is created in the default data directory.
Per the documentation:
Windows does not have a working, thread-safe
realpath()call, so you can’t do this.