The weirdest thing is happening here. I have a script that creates a bunch of sql tables. Here's a quick example:
FileName is create_mydb.sql
--Drops/Creates table UserGroup
DROP TABLE IF EXISTS UserGroup;
CREATE TABLE UserGroup (
user_group_id int NOT NULL AUTO_INCREMENT,
user_id int,
group_id int,
PRIMARY KEY (user_group_id)
) ENGINE=INNODB;
-- Drops/Creates table Group
DROP TABLE IF EXISTS Group;
CREATE TABLE Group (
group_id int NOT NULL AUTO_INCREMENT,
group_name varchar(50),
PRIMARY KEY (group_id)
) ENGINE=INNODB;
When I run this from the command line like:
mysql>\. create_mydb.sql
I get errors like this for every comment:
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 '--Drops/Creates table Group
Any ideas?