Create foreign key on MySQL table takes forever with copy to tmp table

前端 未结 0 1997
有刺的猬
有刺的猬 2021-01-07 06:43

I am trying to set a foreign key constraint on a 5.7 InnoDB table with 30M+ rows. It now already runs for 45 minutes on a quad core 64GB server. The processlist outputs the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题