How can I change case of database name in MySQL?

前端 未结 6 918
迷失自我
迷失自我 2021-02-04 03:12

My Database name is SPM and I want to change it to spm (small letters).

I tried using

RENAME DATABASE SPM TO spm;
6条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 04:01

    This is done with a RENAME DATABASE statement:

    RENAME DATABASE old_db_name TO new_db_name;
    

    This statement was added in MySQL 5.1.7 but was found to be dangerous and was removed in MySQL 5.1.23.

提交回复
热议问题