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

前端 未结 30 2787
余生分开走
余生分开走 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:00

    If you are using phpMyAdmin you can go to the "operations" tab once you have selected the database you want to rename. Then go to the last section "copy database to" (or something like that), give a name, and select the options below. In this case, I guess you must select "structure and data" and "create database before copying" checkboxes and, finally, press the "go" button in that section.

    By the way, I'm using phpMyAdmin in Spanish so I'm not sure what the names of the sections are in English.

提交回复
热议问题