How do I quickly rename a MySQL database (change schema name)?

前端 未结 30 2800
余生分开走
余生分开走 2020-11-22 14:54

The MySQL manual at MySQL covers this.

Usually I just dump the database and reimport it with a new name. This is not an option for very big databases. Apparently

30条回答
  •  礼貌的吻别
    2020-11-22 15:09

    For mac users, you can use Sequel Pro (free), which just provide the option to rename Databases. Though it doesn't delete the old DB.

    once open the relevant DB just click: Database --> Rename database...

提交回复
热议问题