How can I change case of database name in MySQL?

前端 未结 6 972
迷失自我
迷失自我 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:02

    Use rename database command.

    You can also try to stop your mysql server and rename a folder that contains your db data to the name you prefer. Then start your server and check the grants - they might still contain references to your old database name.

提交回复
热议问题