I want to execute some mysql statements that are stored in a text file from my C program using the mysql.h library.
My inclination was to do something like the following, but this doesn't work:
mysql_query(conn, "source test.mysql");
This is because the SOURCE command is not a mysql statement in and of itself.
Is there a way call the SOURCE command programmatically and not from the command line?