error in your SQL syntax | Joomla Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
error in your SQL syntax
November 9, 2010
4:17 pm
Avatar
Guest
Guests

hi good day. let me first say that i think your component is excellent. i am moving a joomla site from one server to another. i read up and found this component. i installed it on the old server and done the backup. in moving to the new server everything went well until this error on trying to install the database:  

"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 line 4"

i have searched the forum so far havent found an answer.can anyone please assist or point me in the right direction. thank you.

November 9, 2010
4:26 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Can you post the sql query you have with the error? Ovidiu

November 9, 2010
5:54 pm
Avatar
Guest
Guests

XCloner! Support said:

Can you post the sql query you have with the error? Ovidiu


#
# Dumping data for table `#__categories`
#
INSERT INTO #__categories VALUES ('1','0','Latest','Latest News','taking_notes.jpg','1','left','The latest news from the Joomla! Team','1','0','0000-00-00 00:00:00','','0','0','1','')
## Dumping data for table `#__categories`#INSERT INTO #__categories VALUES ('1','0','Latest','Latest News','taking_notes.jpg','1','left','The latest news from the Joomla! Team','1','0','0000-00-00 00:00:00','','0','0','1','')

i should mention that i ignored the first error which was for native joomla banner. thank you

November 9, 2010
7:06 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

From what i see, your table export is missing the backquotes around the field and table names, which means you are not allowed to change the value of the  SQL_QUOTE_SHOW_CREATE mysql variable(or it simply fails for some reason), which XCloner does when generating a backup on the original site.

Try enabling the mysqldump option(Active checkbox should be checked), if supported, on your original site and create a new backup with that, then retry the restore process on a clean location. What mysql version are you running on your original server? Usually upgrading it to the latest version fixes a lot of issues.

 

Regards, Ovidiu

November 9, 2010
8:54 pm
Avatar
Guest
Guests

thanks dude... worked like a dream...Laugh

October 18, 2012
2:00 pm
Avatar
Guest
Guests

i got similar problem :

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 'TYPE=MyISAM AUTO_INCREMENT=9' at line 29 SQL=CREATE TABLE `jos_banner` ( `bid` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) NOT NULL DEFAULT '0', `type` varchar(30) NOT NULL DEFAULT 'banner', `name` varchar(255) NOT NULL DEFAULT '', `alias` varchar(255) NOT NULL DEFAULT '', `imptotal` int(11) NOT NULL DEFAULT '0', `impmade` int(11) NOT NULL DEFAULT '0', `clicks` int(11) NOT NULL DEFAULT '0', `imageurl` varchar(100) NOT NULL DEFAULT '', `clickurl` varchar(200) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `showBanner` tinyint(1) NOT NULL DEFAULT '0', `checked_out` tinyint(1) NOT NULL DEFAULT '0', `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `editor` varchar(50) DEFAULT NULL, `custombannercode` text, `catid` int(10) unsigned NOT NULL DEFAULT '0', `description` text NOT NULL, `sticky` tinyint(1) unsigned NOT NULL DEFAULT '0', `ordering` int(11) NOT NULL DEFAULT '0', `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `tags` text NOT NULL, `params` text NOT NULL, PRIMARY KEY (`bid`), KEY `viewbanner` (`showBanner`), KEY `idx_banner_catid` (`catid`) ) TYPE=MyISAM AUTO_INCREMENT=9

 

can u please give me the clue?

i use ja purity quickstart and got this message on installation.

October 18, 2012
8:03 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Please check with your hosting support and see if the MyISAM storage engine is supported.... Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10052
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
piotr K
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0