forums › forums › SQLyog › Using SQLyog › mysql fails to execute sqlyog batch script
- This topic is empty.
-
AuthorPosts
-
-
July 1, 2004 at 6:23 pm #8485virgilMember
I'm running MySQL 4.0.16 and SQLyog 3.71. I export a database to sql scripts using SQLyog, and then try to execute the sql batch script with the mysql.exe command line tool. I get the “ERROR 1049” problem, as mysql chokes on the single quoted object names. (My workaround is to remove all the offending quotes so it will execute).
This is not a db version compatibility issue, as I am trying to execute on the same server I exported from.
Also, I do not have the option of executing the sql scripts from SQLyog. These are to be distributed with an application that needs to set up its initial db via an installer.
Any suggestions?
— Andy
-
July 1, 2004 at 6:34 pm #16044RiteshMember
Can you tell me the complete error message?
Quote:Also, I do not have the option of executing the sql scripts from SQLyog.Use Tools -> Execute Batch File…
-
July 1, 2004 at 6:49 pm #16045virgilMemberRitesh wrote on Jul 1 2004, 06:34 PM:Use Tools -> Execute Batch File…
But I have no problem with that, it works fine. The problem is executing the sqlyog-generated sql using mysql.exe. The error message from that tool is:
Code:ERROR 1049 at line 10: Unknown database '`junkdb`'Thanks,
— Andy
-
July 1, 2004 at 6:52 pm #16046virgilMember
Oh — what I meant by “I don't have the option…” is not that I can't find it in the menu, but that my customers will not have sqlyog. Sorry for the confusion.
-
July 8, 2004 at 1:21 am #16047virgilMember
I am still suffering from this problem — is this a known problem? It seems MySQL will not grok the backquotes that sqlyog generates, and that perhaps sqlyog parses them (or somehow eats them) before executing the statements.
-
July 8, 2004 at 2:43 am #16048RiteshMember
This is strange. Can you mail me the SQL file? I will ask my development team to work on it.
-
-
AuthorPosts
- You must be logged in to reply to this topic.