CREATE TABLE employees1 (
id INT NOT NULL auto_increment ,
name varchar(128),
primary key(id)
) ENGINE=INNODB
PARTITION BY LIST(id%10)(
PARTITION p1 VALUES IN (0,1,2,3,4)
INDEX DIRECTORY = '/var/lib/mysql/p1'
DATA DIRECTORY = '/var/lib/mysql/p1',
PARTITION p2 VALUES IN (5,6,7,8,9)
INDEX DIRECTORY = '/var/lib/mysql/p2'
DATA DIRECTORY = '/var/lib/mysql/p2'
);
正确的路径值是多少?
1条答案
按热度按时间wrrgggsh1#
请参阅本文:https://dev.mysql.com/doc/refman/8.0/en/replication-features-directory.html
基本上,您需要确保p1和p2存在于正确的位置,并且尝试访问它的操作系统用户具有必要的权限。