From: Jordan Hewitt Date: January 15 2013 9:23pm Subject: MySQL++ Query Loop : Commands Out of Sync? List-Archive: http://lists.mysql.com/plusplus/9543 Message-Id: <50F5C8E5.9030501@fastmail.fm> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010403090503030405000209" --------------010403090503030405000209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Here is my code: http://pastebin.com/A4Km6bcC MySQL returns with: Commands out of sync; you can't run this command now t1 is created, but t2 is not. For some reason MySQL++ thinks I'm running the queries simultaneously. Even if I do the following, I still get the error: * Replace remove lines19-21 * After the if(!tableExists) {...} block, add the following lines: query = NULL; delete query; query = connection.query(); If I do nothing to query, I still get the same error. Any ideas? I may just go with the native MySQL. Thanks. --------------010403090503030405000209--