我想通过下面的查询来命名我的数据库:如何在不丢失数据的情况下重命名MySQL数据库?
RENAME DATABASE my_db TO newDB;
但它向我展示了以下错误响应:
Error Code: 1064. You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'DATABASE
activation_server_db TO activationserver' at line 1
请帮我找到我要去的地方错了吗?
@codemania,嗨我是新用户在stackoverflow上,这是什么意思,当你得到票减去,因为在这篇文章中我有-2票? – Amir
http://stackoverflow.com/questions/67093/how-do-i-quickly-rename-a-mysql-database-change-schema-name –
@amir请参阅关于voating http:// stackoverflow的问题。 com/help/privileges/vote-down – codemania