As I run mysql -u root -p -D foo < bar.sql
It keeps arguing about the syntax
ERROR 1064 (42000) at line 4: 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 ‘[Article_Category]
The script is generated from a ERM so I would like to preserve it.
CREATE TABLE [Article_Category]
(
[idArticle] [] NOT NULL,
[idCartegory] [] NOT NULL
)
How can I import this one and get rid of the error?
This square bracket syntax is specific to Microsoft’s table server product. MySQL doesn’t use it. Most ERMs have a setting for choosing the make and model of table server for which it should generate DDL.