forums › forums › SQLyog › Using SQLyog › Mysql Restore Error
Tagged: Restore error
- This topic is empty.
-
AuthorPosts
-
-
July 29, 2015 at 11:26 am #13396MenonMember
Hi
When am trying to restore the database using sqlyog . I get the error as attached below
Error occured at:2015-07-29 11:02:49Line no.:10516Error Code: 1064 – Erreur de syntaxe près de ‘NOW()),erpreferencenumber = var_erprefnum,created = var_created,’ à la ligne 60Wamp version: 2.4 32 bitApache version:2.4.9Php version : 5.5.12Mysql version : 5.6.17 -
July 30, 2015 at 7:37 am #35444peterlaursenParticipant
You posted the same in the “SQLyog” category (the right place), and I replied there.
-
July 30, 2015 at 7:53 am #35445MenonMember
Sorry , I din get any reply , Can you post here if you don mind plz.
-
July 30, 2015 at 12:03 pm #35446peterlaursenParticipant
I asked you to show line 60 of your script (take lines 55-65 for instance). I also asked with what tool/program this dump was created.
-
July 30, 2015 at 12:03 pm #35447peterlaursenParticipant
And now I am moving this to SQLog category.
-
July 31, 2015 at 8:17 am #35448MenonMemberINSERT INTO bearheader SETroutecode = var_routeid,documentnumber = docid,salesmancode = var_salesmancode,customercode = var_customercode,`trantype` = var_trantype,amountpaid = var_amount,totalinvoiceamount = @totalinvoiceamount,invoicebalance = (@totalinvoiceamount-(@amountpaid+var_amount)),transactiondate = STR_TO_DATE(var_trandate,’%d-%m-%Y’),transactiontime = CURRENT_TIME(NOW()),erpreferencenumber = var_erprefnum,created = var_created,modified = var_created,cdat = NOW(),mdat = NOW(),currencycode = curre_code,pdcstatus = var_paymode;— pdcstatus = if(var_paymode=0,1,1);SELECT LAST_INSERT_ID() INTO @last_id;SELECT @last_id AS last_id;SELECT update_acbodocseq_route(var_routeid);— set abs on var_amountSET var_amount = ABS(var_amount);Back up was taken with sqlyog tool
-
July 31, 2015 at 8:19 am #35449MenonMember
The version of mysql is 5.6.17
-
July 31, 2015 at 10:32 am #35450peterlaursenParticipant
This looks extremely stange. No constants in the INSERT statement. This is not from an SQL dump but from a script of some(other) kind. Are you sure that you are not mismatching files (or maybe had overwritten a dump/backup with a script)?
-
-
AuthorPosts
- You must be logged in to reply to this topic.