MySQL errors
Error: 1064
ERROR 1064 (42000) at line 3: 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 '
This means that there are syntax errors. For example, you are creating a table and defining the columns incorrectly.
For example, you use ; instead of ,
id INT;
model VARCHAR(20);
modified_time TIMESTAMP;
name VARCHAR(20);
Or you did not specify a length for VARCHAR
id INT,
model VARCHAR,
modified_time TIMESTAMP,
name VARCHAR,
This is easy to fix
id INT,
model VARCHAR(20),
modified_time TIMESTAMP,
name VARCHAR(20),
Study the MySQL documentation carefully
Error: Table X already exists
ERROR 1050 (42S01) at line 3: Table 'tableName' already exists
Study the MySQL documentation carefully
Article author: Andrei Olegovich