【发布时间】:2016-06-17 13:10:25
【问题描述】:
为了能够创建带有大写字母的表格,我不得不修改ProgramData\MySQL\MySQL Server 5.7 中的my.ini 文件,U 在文件末尾添加了lower_case_table_names = 2,就像我关闭时建议的here 一样MySQL服务器并重新启动它无法创建任何新表,所以我删除了我添加的行,再次重新启动服务器,我一直有这个错误
Operation failed: There was an error while applying the SQL script to the database.
Executing:
CREATE TABLE `toys`.`new_table` (
);
ERROR 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 ')' at line 2
SQL Statement:
CREATE TABLE `toys`.`new_table` (
)
【问题讨论】:
标签: mysql syntax-error ddl create-table