I did put the ; at the end of the statement. Should have put that in the first post.
The text of the .sql file (which came with a banner ad tracking utility) is as follows:
CREATE TABLE adclicks (
bannerID mediumint(9) DEFAULT '0' NOT NULL,
t_stamp timestamp(14),
host varchar(255) NOT NULL,
KEY clientID (bannerID)
);
CREATE TABLE adviews (
bannerID mediumint(9) DEFAULT '0' NOT NULL,
t_stamp timestamp(14),
host varchar(255) NOT NULL,
KEY clientID (bannerID)
);
CREATE TABLE banners (
bannerID mediumint(9) NOT NULL auto_increment,
clientID mediumint(9) DEFAULT '0' NOT NULL,
banner blob NOT NULL,
width smallint(6) DEFAULT '0' NOT NULL,
height smallint(6) DEFAULT '0' NOT NULL,
format enum('gif','jpeg','png','html','url') DEFAULT 'gif' NOT NULL,
url varchar(255) NOT NULL,
alt varchar(255) NOT NULL,
keyword varchar(255) NOT NULL,
bannertext varchar(255) NOT NULL,
active enum('true','false') NOT NULL,
PRIMARY KEY (bannerID)
);
CREATE TABLE clients (
clientID mediumint(9) DEFAULT '0' NOT NULL auto_increment,
clientname varchar(255) NOT NULL,
contact varchar(255),
email varchar(64) NOT NULL,
views mediumint(9),
clicks mediumint(9),
clientusername varchar(64) NOT NULL,
clientpassword varchar(64) NOT NULL,
expire date DEFAULT '0000-00-00',
PRIMARY KEY (clientID)
);
CREATE TABLE session (
SessionID varchar(32) NOT NULL,
SessionData blob NOT NULL,
LastUsed timestamp(14),
PRIMARY KEY (SessionID)
);
CREATE TABLE acls (
bannerID mediumint(9) DEFAULT '0' NOT NULL,
acl_type enum('clientip','useragent','weekday') NOT NULL,
acl_data varchar(255) NOT NULL,
acl_ad set('allow','deny') NOT NULL,
acl_order int(10) unsigned DEFAULT '0' NOT NULL,
KEY bannerID (bannerID),
UNIQUE bannerID_2 (bannerID, acl_order)
);
My opinion at the moment is that the problem lies not with the code above but with the recognition by mysqlc of the actual 'mysql <filename.sql;' command. I'm open to correction on this.