2

I'm trying to create partitions in one big table, but I'm getting this error:

1505 - Partition management on a not partitioned table is not possible

There is any command to convert the table? Or do I have to create a new one and import all data?

There is any problem when using Partitioning with Replication?

Thanks in advance,
Pedro

1 Answer 1

4

Try:

ALTER TABLE table_name PARTITION BY ...
Sign up to request clarification or add additional context in comments.

3 Comments

Well I get sintax error with: ALTER TABLE promo_tool_view PARTITION BY ( partition p001 )
Check the syntax for CREATE TABLE: dev.mysql.com/doc/refman/5.1/en/create-table.html Note that you're missing an argument that specifies what to partition by (hash, key, range, or list).
thank it worked with ALTER TABLE promo_tool_view PARTITION BY RANGE (date(view_date)) ( partition p001 VALUES LESS THAN (date('2009-11-01')) , partition p002 VALUES LESS THAN MAXVALUE) ) But now I get his partition function is not allowed, but I think is related with date function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.