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 :
These options work only when you are not using the --skip-symbolic-links option. Your operating system must also have a working, thread-safe realpath() call. See Section 7.9.6.2, “Using Symbolic Links for Tables on Unix” , for more complete information.
Windows does not have a working, thread-safe realpath()
call, so you can't do this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.