MySQL DROP all tables, ignoring foreign keys

前端 未结 24 2780
醉梦人生
醉梦人生 2020-12-02 03:44

Is there a nice easy way to drop all tables from a MySQL database, ignoring any foreign key constraints that may be in there?

24条回答
  •  我在风中等你
    2020-12-02 03:45

    Best solution for me so far

    Select Database -> Right Click -> Tasks -> Generate Scripts - will open wizard for generating scripts. After choosing objects in set Scripting option click Advanced Button. Under "Script DROP and CREATE" select Script DROP.

    Run script.

提交回复
热议问题