I'm now trying to import the SQL ansi format file BACK to a new database using Heidi. But I keep getting this error:
# # Dumping data for table 'adminlog' # LOCK TABLES "adminlog" WRITE;
/* SQL Error (1064): 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 '"adminlog" WRITE' at line 5 */
Any ideas what's wrong?
Here is the actual SQL data that's causing the error:
# HeidiSQL Dump
#
# --------------------------------------------------------
# Host: 72.3.135.18
# Database: viplounge
# Server version: 4.1.22
# Server OS: redhat-linux-gnu
# Target-Compatibility: Standard ANSI SQL
# HeidiSQL version: 3.2 Revision: 1129
# --------------------------------------------------------
/*!40100 SET CHARACTER SET latin1;*/
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI';*/
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;*/
#
# Table structure for table 'adminlog'
#
CREATE TABLE /*!32312 IF NOT EXISTS*/ "adminlog" (
"adminlogid" int(10) unsigned NOT NULL auto_increment,
"userid" int(10) unsigned NOT NULL default '0',
"dateline" int(10) unsigned NOT NULL default '0',
"script" varchar(50) NOT NULL default '',
"action" varchar(20) NOT NULL default '',
"extrainfo" varchar(200) NOT NULL default '',
"ipaddress" varchar(15) NOT NULL default '',
PRIMARY KEY ("adminlogid"),
KEY "script_action" ("script","action")
) AUTO_INCREMENT=6928 /*!40100 DEFAULT CHARSET=latin1*/;
#
# Dumping data for table 'adminlog'
#
LOCK TABLES "adminlog" WRITE;
/*!40000 ALTER TABLE "adminlog" DISABLE KEYS;*/
REPLACE INTO "adminlog" ("adminlogid", "userid", "dateline", "script", "action", "extrainfo", "ipaddress") VALUES
('1','1','1102279454','index.php','','','65.10.155.112');
/*!40000 ALTER TABLE "adminlog" ENABLE KEYS;*/
UNLOCK TABLES;