I have one table in mysql. here is schema for that table.
TableName : LoginDet
~~~~~~~~~~~~~~~~~~~~
loginid mediumint(8) PrimaryKey AutoIncrement
logindate timestamp Not null
userid mediumint(8) unsigned
Table's primaryKey (loginid) is a linked with some other table as foreign key. This table has already 15,00,000 records. Now I want to create range partition on this table on 'logindate' field. this field is not a part of primary Key. So my question is how can I create partition on 'logindate' without doing changes with primary key and foreign key?