mysql 创建表数据目录
我正在尝试使用以下命令更改 MySQL 表的数据目录。我正在窗户中尝试。但它不起作用。有人能告诉我原因吗?
CREATE TABLE clients
(
client_id INT AUTO_INCREMENT KEY,
client_name VARCHAR(75),
telephone CHAR(15)
)
DATA DIRECTORY = 'e:\data\mysql';
该表已创建。但它是在默认数据目录中创建的。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据文档:
Windows 没有有效的线程安全
realpath()
调用,因此您无法执行此操作。Per the documentation:
Windows does not have a working, thread-safe
realpath()
call, so you can't do this.