Bug #54237 Confusing server advice about --with-partition
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.)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
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.)