Webmastersite.net
Register Log In

SQL Error v3.12
Did a dump and trying reload...

Comments on SQL Error v3.12

tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jan 14, 2005 - 12:28 PM:

This is what I get when I try to reload a dumped database:
ERROR 1064 at line 194: 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 'to text NOT NULL,
subject text NOT NULL,
message text NOT N

Here is the ofending table @ line 194:


CREATE TABLE wsnlinks_email (
id int(11) NOT NULL auto_increment,
to text NOT NULL,
subject text NOT NULL,
message text NOT NULL,
headers text NOT NULL,
timesent int(11) NOT NULL default '0',
ip text NOT NULL,
replacement text NOT NULL,
mime tinyint(1) NOT NULL default '0',
UNIQUE KEY id (id)
) TYPE=MyISAM;

Any Ideas?

mysqld Ver 4.0.21-standard
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jan 14, 2005 - 12:43 PM:

I guess the dump mangled the syntax or something so I just copied an pasted the correct syntax from the setup.sql file...then it worked.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 14, 2005 - 4:31 PM:

to needs to be quoted as `to`... but I'm going to be dumping the backup system anyway in favor of using mysql commands (simply calling them through php so that you don't have to remember them), even though it won't work for safe mode hosts and possibly not for windows hosts, since WSN's backup mechanism really can't work for a large database.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.