title: Alter a large mysql table 700 gb
body: <p>The production table I want to alter is around 700 Gb. I want to remove a FK from that table. Mysql version is 5.1.61-log.</p>
  
  <p>I found following options:</p>
  
  <p><strong>pt-online-schema-change:</strong> alters a table’s structure without blocking reads or writes. This looks most efficient in terms alteration time. This also takes care of server load by dividing table copy into chunks and pauses data copy process in case of high load on the server.</p>
  
  <p>The only problem with tool for me is available space on server is 450 GB and there is no room for another drive. This tool works on a copy of the table which is around 700 GB.</p>
  
  <p><strong>Upgrade to Mysql 5.6:</strong> With ONLINE DDL feature of 5.6, most of the ALTER types won’t block writes to a table that is being changed. Also it supports Add/Drop a foreign key constraint without the need of full table copy.</p>
  
  <p>But I am not sure how it takes care of server load and how much time it going to take for alteration. </p>
  
  <p>Is there any other option like pt-online-schema-change which doesn't have to copy table?
  Any experience/comments on ONLINE DDL of Mysql 5.6?</p>
  
  <p>Thanks in advance!</p>