MySqlTalk.com  

Go Back   MySqlTalk.com > MySQL-based Web Apps > Other
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 01-20-2006, 10:08 PM   #1
pinkbee
Junior Member
 
Join Date: Jan 2006
Posts: 1 pinkbee is on a distinguished road
SMF Moving Server Problem

Pardon me if I posted this in the wrong board...

I wanted to move my SMF forum (version 1.0.5) to Raydi Hosting, without restarting the forum all over again. I've read through the guide SMF has provided here. Everything went fine until when I want to import the .sql database to phpMyAdmin.

When I import the .sql database, the page shows this:

SQL query:
Quote:
CREATE TABLE `smf_shop_items` (

id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
name varchar( 50 ) NOT NULL default '',
DESC text NOT NULL default '',
price decimal( 8, 2 ) unsigned NOT NULL default 0.00,
module tinytext NOT NULL default '',
stock smallint( 6 ) NOT NULL default 0,
info1 text NOT NULL default '',
info2 text NOT NULL default '',
info3 text NOT NULL default '',
info4 text NOT NULL default '',
input_needed tinyint( 3 ) unsigned NOT NULL default 1,
can_use_item tinyint( 3 ) unsigned NOT NULL default 1,
image tinytext NOT NULL default '',
PRIMARY KEY ( id )
) TYPE = MYISAM

MySQL said:
Quote:
#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 default '',
price decimal(8,2) unsigned N

Asked SMF and a moderator asked me if the MySQL on the servers are different. The old one is using 4.1.14-standard while the new one is using 4.0.25-standard. Could this be the problem? Is it possible to rewrite the .sql database for 4.0.25?

I need help urgently, because I have to restore my forum asap... Thanks!
pinkbee is offline   Fork this post Reply With Quote
Old 02-17-2006, 06:47 PM   #2
Azkaban
Senior Member
 
Join Date: Jul 2004
Posts: 167 Azkaban is on a distinguished road
Re: SMF Moving Server Problem

Quote:
Originally Posted by pinkbee
Pardon me if I posted this in the wrong board...

I wanted to move my SMF forum (version 1.0.5) to Raydi Hosting, without restarting the forum all over again. I've read through the guide SMF has provided here. Everything went fine until when I want to import the .sql database to phpMyAdmin.

When I import the .sql database, the page shows this:

SQL query:


MySQL said:


Asked SMF and a moderator asked me if the MySQL on the servers are different. The old one is using 4.1.14-standard while the new one is using 4.0.25-standard. Could this be the problem? Is it possible to rewrite the .sql database for 4.0.25?

I need help urgently, because I have to restore my forum asap... Thanks!

It could be the problem. But it looks to me, especially in light of DESC being placed in UPPERCASE, that MySQL isn't liking naming a field after a reserved term like DESC, which can mean DESC like ORDER BY fieldname DESC.

Problem being that in a query, you might say SELECT blahblah ORDER BY DESC ASC or something like that. It will not know if you are referring to a field or an ORDER BY.
__________________
** Most misspellings intentional to combat spaham filterz**
Azkaban is offline   Fork this post Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to start MySQL server on XP? inte General 2 12-13-2004 09:18 PM
Mysql ended / daemon broken problem southamptonfc General 0 11-30-2004 10:29 AM
1.7 MySQL Information Sources Administrator Documentation 8 06-08-2004 02:58 AM
1.5.1.2 The Embedded MySQL Server Administrator Documentation 0 06-08-2004 02:39 AM
3.1 Connecting to and Disconnecting from the Server Administrator Documentation 0 06-07-2004 10:00 PM



All times are GMT -4. The time now is 08:54 PM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".