Description:
I tried to create a partitioned table and got this:
ERROR 1289 (HY000): The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working
But when I added --with-partition to my configure options, I got this:
configure: WARNING: unrecognized options: --with-partition
However: SHOW PLUGINS with the rebuilt server does show that partitioning is enabled, despite the warning.
How to repeat:
Test script:
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (dt datetime)
PARTITION BY RANGE(YEAR(dt)) (
PARTITION p0 VALUES LESS THAN MAXVALUE
);
Result:
mysql> DROP TABLE IF EXISTS t1;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> CREATE TABLE t1 (dt datetime)
-> PARTITION BY RANGE(YEAR(dt)) (
-> PARTITION p0 VALUES LESS THAN MAXVALUE
-> );
ERROR 1289 (HY000): The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working
Add --with-partition to configure options, the warning will occur at the end of the output.
Suggested fix:
The advice should be to add "partition" to the --with-plugins option instead? (No configure warning occurs that way.)
Description: I tried to create a partitioned table and got this: ERROR 1289 (HY000): The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working But when I added --with-partition to my configure options, I got this: configure: WARNING: unrecognized options: --with-partition However: SHOW PLUGINS with the rebuilt server does show that partitioning is enabled, despite the warning. How to repeat: Test script: DROP TABLE IF EXISTS t1; CREATE TABLE t1 (dt datetime) PARTITION BY RANGE(YEAR(dt)) ( PARTITION p0 VALUES LESS THAN MAXVALUE ); Result: mysql> DROP TABLE IF EXISTS t1; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CREATE TABLE t1 (dt datetime) -> PARTITION BY RANGE(YEAR(dt)) ( -> PARTITION p0 VALUES LESS THAN MAXVALUE -> ); ERROR 1289 (HY000): The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working Add --with-partition to configure options, the warning will occur at the end of the output. Suggested fix: The advice should be to add "partition" to the --with-plugins option instead? (No configure warning occurs that way.)