mysql_real_query unable to do "source" command
Posted by: shane man
Date: November 08, 2005 09:34PM

Hi

I was wondering is this a known limitation for the mysql_real_query API that it cannot support the "source" command?

I have a sql file that I want to apply to a database, but for error tracking reasons I want to use the mysql API instead of passing the file into mysql.exe because I cannot obtain stderr from my process.

Is there an API that will allow me to apply a sql file to a database?

I do not want to have to parse through the file, because then I run into the problem of multiline statements, and mysqlbinlog does not delimit 1-line statements with a ';'.

Thanks,

Shane

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql_real_query unable to do "source" command
738
November 08, 2005 09:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.