无法使用以下查询重命名数据库。我正在使用 mysql2
RENAME DATABASE a to b;
ERROR 1064 (42000): 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 a to b' at line 1
我是 mysql 的新手。正确的语法是什么?
最佳答案
该命令已删除,请参阅 - dev.mysql.com/doc/refman/5.1/en/rename-database.html .请改用 ALTER DATABASE。
关于mysql重命名数据库不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26121511/