I'm trying to create Partitioned table using mysql, but I don't want to specify the number of partitions. for example in the given table i will have over 100k records for each region. I don't know the regions. they will coming later. so the number of partitions should increase based on the regions, but below syntax is creating single partition even when i insert multiple rows with different values.
I didn't mention partitions count.
CREATE TABLE `members` (
`firstname` varchar(25) NOT NULL,
`lastname` varchar(25) NOT NULL,
`username` varchar(16) NOT NULL,
`email` varchar(35) DEFAULT NULL,
`region` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
PARTITION BY KEY (region);