forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Schema Sync Fails: Limit
- This topic is empty.
-
AuthorPosts
-
-
April 27, 2010 at 3:17 am #11951maxhugenParticipant
I've had a problem a number of times now, where a Schema Sync fails, reporting:
Code:Query : USE `cams` LIMIT 116, 0
Error Code : 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 'LIMIT 116, 0' at line 1The queries generated were:
Code:USE `cams`;/* Foreign Keys must be dropped in the target to ensure that requires changes can be done*/
ALTER TABLE `project` DROP FOREIGN KEY `FK_project` ;
/* Alter table in target */
ALTER TABLE `project`
ADD COLUMN `area_building` int(10) NULL after `sort_order`,
ADD COLUMN `area_shell` int(10) NULL after `area_building`,
ADD COLUMN `area_footprint` int(10) NULL after `area_shell`,
ADD COLUMN `beds` int(10) NULL after `area_footprint`,
ADD COLUMN `beds_shell` int(10) NULL after `beds`,
CHANGE `short_code` `short_code` varchar(50) COLLATE utf8_general_ci NULL after `beds_shell`,
CHANGE `ts` `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP after `short_code`,
DROP COLUMN `sqft`,
DROP COLUMN `shell_sqft`,
DROP COLUMN `no_beds`,
DROP COLUMN `no_beds_shell`, COMMENT='';/* The foreign keys that were dropped are now re-created*/
ALTER TABLE `project`
ADD CONSTRAINT `FK_project`
FOREIGN KEY (`master_project_code`) REFERENCES `master_project` (`master_project_code`) ON UPDATE CASCADE;I don't know what's wrong; I've used this tool many times without problem, until just the last couple of months. If I run the generated queries myself, all is OK.
Any thoughts? (version is 8.3)
MTIA
-
April 27, 2010 at 4:41 am #30781MaheshMember
-
April 27, 2010 at 5:08 am #30782maxhugenParticipant
Thanks Mahesh!
-
-
AuthorPosts
- You must be logged in to reply to this topic.