Jump to content


Photo

dump from phpmyadmin wont work


  • Please log in to reply
2 replies to this topic

#1 Red Squirrel

Red Squirrel
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 March 2006 - 10:43 PM

I'm trying to restore a dump from phpmyadmin and this table is giving me issues. why wont this work?

mysql> CREATE TABLE catalog (
    ->   prod_id bigint(20) NOT NULL default '0',
    ->   name varchar(255) NOT NULL default '',
    ->   price bigint(20) NOT NULL default '0',
    ->   short_desc text NOT NULL,
    ->   desc text NOT NULL,
    ->   picture varchar(128) NOT NULL default '',
    ->   inventory bigint(20) NOT NULL default '0',
    ->   shipping bigint(20) NOT NULL default '0',
    ->   PRIMARY KEY  (prod_id),
    ->   KEY prod_id (prod_id)
    -> ) TYPE=MyISAM;
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 'desc text NOT NULL,
  picture varchar(128) NOT NULL default '',
mysql> 


#2 Guest_footballkid4_*

Guest_footballkid4_*
  • Guests

Posted 30 March 2006 - 10:46 PM

"desc" is a MySQL keyword, change references of desc to `desc` in your MySQL dump

#3 Red Squirrel

Red Squirrel
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 March 2006 - 10:49 PM

Really? But why does it work at the college, is it because we're using php/mysql on windows?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users