我想通過下面的查詢來命名我的數據庫:如何在不丟失數據的情況下重命名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