我正在尝试使用以下命令更改 MySQL 表的数据目录。我正在 window 中尝试。但它不起作用。谁能告诉我原因吗?
CREATE TABLE clients
(
client_id INT AUTO_INCREMENT KEY,
client_name VARCHAR(75),
telephone CHAR(15)
)
DATA DIRECTORY = 'e:\data\mysql';
表已创建。但它是在默认数据目录中创建的。
最佳答案
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 没有有效的线程安全 realpath()
调用,因此您无法执行此操作。
关于mysql 创建表数据目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8821839/