I have a mysql script in a file that I need to be able to execute from my c# application. Here is a sample of what the script contains:
USE osae;
-- Set DB
I am not 100% sure what native MySql syntax is, but when we perform similar functionality for Sql Server, we have to break the sql file into chunks based on the literal values (GO
) that are only used by the query executor (Sql Server Management Console).
I suspect there may be similar information embedded in your request above, such as the DEFINE statement.
Knowing exactly what MySql complained about would help refine the solution.