I made a MySQL dump of a database, with drop tables and table content. I then try to run that dump as a query with PHP, but it says I have a syntax error. Why is this? Is it because a MySQL dump is for the MySQL client and not proper SQL?
Here's the relevant bits from the content of the dump file:
DROP TABLE IF EXISTS 'tbl_files';
CREATE TABLE 'tbl_files' (
'file_id' int(11) NOT NULL auto_increment,
'file_url' varchar(155) default NULL,
....
PRIMARY KEY ('file_id')
) TYPE=MyISAM;
It says I have a syntax error near 'file_id' int(11) NOT NULL auto_increment.