Can I drop a foreign key constraint without any downtime

I would like to assume ‘yes’, because it seems like it should be a rule that just stops being applied, but since I have not done this on a large database, I want to confirm.

Hi,

Yes, you don’t need any downtime to drop foreign key constraint but it will lock the tables during ALTER so it might affect to performance and you found some queries in processlist waiting for release of that lock. If you dont want to lock tables, you can use Percona utility

[URL=“pt-online-schema-change — Percona Toolkit Documentation”]http://www.percona.com/doc/percona-toolkit/2.1/pt-online-schema-change.html[/URL=“http://www.percona.com/doc/percona-toolkit/2.1/pt-online-schema-change.html”]

I would suggest to test it on stage server before production.