<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - MySQL Connector/C++</title>
        <description>Forum for C++ and the MySQL Connector/C++ driver.</description>
        <link>http://forums.mysql.com/list.php?167</link>
        <lastBuildDate>Sun, 19 May 2013 19:45:19 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?167,585064,585064#msg-585064</guid>
            <title>Set up MySQL Connector/C++ with Code::Blocks on Debian (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,585064,585064#msg-585064</link>
            <description><![CDATA[ This post started as a rather silly question (through inexperience) about how to get the connector libraries working. So, as I've made some headway, I thought I'd edit it (heavily) so the information I've gleaned is up here for anybody else who needs it.<br />
<br />
So I've been trying to learn how to use C++ and MySQL together. To that end, I have dusted off my C++ reference and installed Code::Blocks and the MySQL Connector/C++ on my Debian Wheezy (64-bit) system. It was a bit rocky at first, but I'm slowly getting somewhere (been a while since I did any coding).<br />
<br />
If anybody knows of something I've done wrong, feel free to correct me, and I'll make sure to edit the post summore.<br />
<br />
I installed Code::Blocks from the Debian repo.<br />
I then downloaded the GA binary release mysql-connector-c++-1.1.3-linux-debian6.0-x86-64bit.tar.gz from mysql.com, extracted it, and placed the lib and include folders into my /usr/local/ folder under a subfolder called &quot;mysql&quot;.<br />
<br />
Ok, so that bit was really basic, so if you're lost, I'd suggest taking a look at a decent linux book. Don't know if it's the best, but I've been going through The Linux Bible.<br />
<br />
Noticing that the examples are missing from the binary release, I also grabbed the source archives, so I could take a look at the examples. Note that examples.h has some useful #define lines for checking your compiler version so you can use &quot;EXAMPLE_FUNCTION&quot; in a try...catch error outputty-type thing. Again, if you're unfamiliar with try...catch and #define, I'd say go grab a book on C++.<br />
<br />
On to Code::Blocks. I created a new console application project, &quot;MySQLTest&quot;, using the GNU GCC Compiler, and replaced the &quot;Hello World&quot; code it gave me in main.cpp with the code from standalone_example.cpp, and copied over exmaples.h to the project dir, slapping an include line at the top of main.cpp for it.<br />
<br />
The next bit I did was create a global variable in Code::Blocks (Settings/Global Variables), called &quot;mysql&quot;, with the base dir being &quot;/usr/local/mysql&quot; (which is probably not all that great, because there's nothing there), the include dir being &quot;/usr/local/mysql/include&quot;, and the lib dir being &quot;/usr/local/mysql/lib&quot;. <br />
<br />
After that I set some build options (Project/Build Options&quot;. I selected the root node in the tree on the left of the dialog, and in the &quot;Compiler&quot; tab within &quot;Search Directories&quot; I added &quot;$(#mysql.include)&quot; - thus making use of the global variable I made, and I put &quot;$(#mysql.lib)&quot; as an entry in the &quot;Linker&quot; tab.<br />
<br />
Right. So I want to build a static binary, simply because it means I don't have to faff about quite so much if I want to run my program on another machine. And to get this to work, it seems I need to do the following. <br />
<br />
In the aforementioned Linker tab, I added &quot;/usr/lib/x86_64-linux-gnu&quot; so that the compiler can find one of the .a files (libmysqlclient.a) needed for the static build. This folder will probably be different if you're not on a 64-bit Debian system like me.<br />
<br />
Then in the left pane of the &quot;Linker Settings&quot; tab, I added &quot;libmysqlclient.a&quot; and also &quot;libmysqlcppconn-static.a&quot;, which is in the &quot;lib&quot; directory of the connector.<br />
<br />
Note that (for me at least) &quot;libmysqlclient.a&quot; needs to be in the list above &quot;libmysqlcppconn-static.a&quot;, or you get a ton of linker errors. <br />
<br />
And that's it! All I (and probably you if you had to read this post) have to do now is read the manuals on how to use the connector.<br />
<br />
- Scott]]></description>
            <dc:creator>Scott Griffith</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sun, 28 Apr 2013 17:20:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,583908,583908#msg-583908</guid>
            <title>Error LNK2031, LNK2028, LNK2019, LNK2001 (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,583908,583908#msg-583908</link>
            <description><![CDATA[ So I was able to successfully build a program in visual c++ using a command prompt. It was a simple program to read from the database then write to the database based on some variable. So I decided to make it a lot more fancy and add a button. I linked everything up the same as I did before, posted the same code without the cout and cin, but I recieved this code<br />
1&gt;new test mysql.obj : error LNK2031: unable to generate p/invoke for &quot;extern &quot;C&quot; class sql::Driver * __clrcall get_driver_instance(void)&quot; (?get_driver_instance@@$$J0YMPAVDriver@sql@@XZ); calling convention missing in metadata<br />
1&gt;stdafx.obj : error LNK2028: unresolved token (0A00000D) &quot;public: __clrcall sql::SQLString::~SQLString(void)&quot; (??1SQLString@sql@@$$FQAM@XZ) referenced in function &quot;public: virtual __clrcall sql::mysql::MySQL_Savepoint::~MySQL_Savepoint(void)&quot; (??1MySQL_Savepoint@mysql@sql@@$$FUAM@XZ)<br />
1&gt;new test mysql.obj : error LNK2028: unresolved token (0A00001E) &quot;public: __clrcall sql::SQLString::~SQLString(void)&quot; (??1SQLString@sql@@$$FQAM@XZ) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;new test mysql.obj : error LNK2028: unresolved token (0A000035) &quot;public: __clrcall sql::SQLString::SQLString(char const * const)&quot; (??0SQLString@sql@@$$FQAM@QBD@Z) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;new test mysql.obj : error LNK2028: unresolved token (0A000037) &quot;extern &quot;C&quot; class sql::Driver * __clrcall get_driver_instance(void)&quot; (?get_driver_instance@@$$J0YMPAVDriver@sql@@XZ) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;stdafx.obj : error LNK2028: unresolved token (0A000093) &quot;public: virtual int __clrcall sql::mysql::MySQL_Savepoint::getSavepointId(void)&quot; (?getSavepointId@MySQL_Savepoint@mysql@sql@@$$FUAMHXZ) referenced in function &quot;void __clrcall `dynamic initializer for 'const sql::mysql::MySQL_Savepoint::`vftable'''(void)&quot; (???__E??_7MySQL_Savepoint@mysql@sql@@6B@@@YMXXZ@?A0xf283656a@@$$FYMXXZ)<br />
1&gt;stdafx.obj : error LNK2028: unresolved token (0A000094) &quot;public: virtual class sql::SQLString __clrcall sql::mysql::MySQL_Savepoint::getSavepointName(void)&quot; (?getSavepointName@MySQL_Savepoint@mysql@sql@@$$FUAM?AVSQLString@3@XZ) referenced in function &quot;void __clrcall `dynamic initializer for 'const sql::mysql::MySQL_Savepoint::`vftable'''(void)&quot; (???__E??_7MySQL_Savepoint@mysql@sql@@6B@@@YMXXZ@?A0xf283656a@@$$FYMXXZ)<br />
1&gt;new test mysql.obj : error LNK2019: unresolved external symbol &quot;public: __clrcall sql::SQLString::~SQLString(void)&quot; (??1SQLString@sql@@$$FQAM@XZ) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;stdafx.obj : error LNK2001: unresolved external symbol &quot;public: __clrcall sql::SQLString::~SQLString(void)&quot; (??1SQLString@sql@@$$FQAM@XZ)<br />
1&gt;new test mysql.obj : error LNK2019: unresolved external symbol &quot;public: __clrcall sql::SQLString::SQLString(char const * const)&quot; (??0SQLString@sql@@$$FQAM@QBD@Z) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;new test mysql.obj : error LNK2019: unresolved external symbol &quot;extern &quot;C&quot; class sql::Driver * __clrcall get_driver_instance(void)&quot; (?get_driver_instance@@$$J0YMPAVDriver@sql@@XZ) referenced in function &quot;private: void __clrcall newtestmysql::Form1::mysqltest(void)&quot; (?mysqltest@Form1@newtestmysql@@$$FA$AAMXXZ)<br />
1&gt;stdafx.obj : error LNK2019: unresolved external symbol &quot;public: virtual class sql::SQLString __clrcall sql::mysql::MySQL_Savepoint::getSavepointName(void)&quot; (?getSavepointName@MySQL_Savepoint@mysql@sql@@$$FUAM?AVSQLString@3@XZ) referenced in function &quot;void __clrcall `dynamic initializer for 'const sql::mysql::MySQL_Savepoint::`vftable'''(void)&quot; (???__E??_7MySQL_Savepoint@mysql@sql@@6B@@@YMXXZ@?A0xf283656a@@$$FYMXXZ)<br />
1&gt;stdafx.obj : error LNK2019: unresolved external symbol &quot;public: virtual int __clrcall sql::mysql::MySQL_Savepoint::getSavepointId(void)&quot; (?getSavepointId@MySQL_Savepoint@mysql@sql@@$$FUAMHXZ) referenced in function &quot;void __clrcall `dynamic initializer for 'const sql::mysql::MySQL_Savepoint::`vftable'''(void)&quot; (???__E??_7MySQL_Savepoint@mysql@sql@@6B@@@YMXXZ@?A0xf283656a@@$$FYMXXZ)<br />
<br />
<br />
<br />
<br />
<br />
Any and all help is appreciated.]]></description>
            <dc:creator>Tay Moore</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sun, 14 Apr 2013 01:56:03 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,583841,583841#msg-583841</guid>
            <title>Connector does not work (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,583841,583841#msg-583841</link>
            <description><![CDATA[ I'm try to use this example<br />
<br />
<br />
<a href="http://dev.mysql.com/doc/refman/5.6/en/connector-cpp-examples-complete-example-1.html"  rel="nofollow">http://dev.mysql.com/doc/refman/5.6/en/connector-cpp-examples-complete-example-1.html</a><br />
<br />
I'm download c++ connector, put dll here:<br />
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib<br />
and headers to include<br />
<br />
Then i download boost, and add it.<br />
<br />
I have create c++ console aplication and try run project, but i have error:<br />
<br />
<a href="http://img687.imageshack.us/img687/148/54826950.jpg"  rel="nofollow">http://img687.imageshack.us/img687/148/54826950.jpg</a><br />
<br />
Please, tell me what am I doing wrong?]]></description>
            <dc:creator>Yuriy Osipov</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Fri, 12 Apr 2013 22:50:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,583398,583398#msg-583398</guid>
            <title>Prepared Statements: setInt always 0 (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,583398,583398#msg-583398</link>
            <description><![CDATA[ Hi!<br />
<br />
first of all i have to exuse me for my english! obviously i want to access my database with c++. I downloded the &quot;mysql-connector-c++-1.1.2.tar&quot; and compiled it with cmake and msvc2010. then i copied the example code [*] form the mysql homepage. <br />
<br />
After starting the programm, i can connect to my database test and create the table test_table. I can also insert entrys with the prepareStatement, but all entrys have the value 0.<br />
<br />
Any ideas on why I can't bind to the prepared statement? <br />
<br />
thx for your help<br />
<br />
<br />
[*]<br />
<br />
<br />
#include &quot;stdafx.h&quot;<br />
<br />
#include &quot;mysql_connection.h&quot;<br />
<br />
#include &lt;cppconn/driver.h&gt;<br />
#include &lt;cppconn/exception.h&gt;<br />
#include &lt;cppconn/resultset.h&gt;<br />
#include &lt;cppconn/statement.h&gt;<br />
#include &lt;cppconn/prepared_statement.h&gt;<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	sql::Driver *driver;<br />
	sql::Connection *con;<br />
	sql::Statement *stmt;<br />
	sql::ResultSet *res;<br />
	sql::PreparedStatement *pstmt;<br />
<br />
	driver = get_driver_instance();<br />
	con = driver-&gt;connect(&quot;tcp://127.0.0.1:3306&quot;, &quot;root&quot;, &quot;&quot;);<br />
<br />
	con-&gt;setSchema(&quot;test&quot;);<br />
<br />
	stmt = con-&gt;createStatement();<br />
	stmt-&gt;execute(&quot;DROP TABLE IF EXISTS test&quot;);<br />
	stmt-&gt;execute(&quot;CREATE TABLE test_table(id INT)&quot;);<br />
	delete stmt;<br />
<br />
	/* '?' is the supported placeholder syntax */<br />
<br />
	pstmt = con-&gt;prepareStatement(&quot;INSERT INTO test_table(id) VALUES (?)&quot;);<br />
	for (int i = 1; i &lt;= 10; i++) {<br />
		pstmt-&gt;setInt(1, i);<br />
		pstmt-&gt;executeUpdate();<br />
	}<br />
<br />
	delete pstmt;<br />
	delete con;<br />
<br />
	return 0;<br />
}]]></description>
            <dc:creator>Thomas Steiner</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 08 Apr 2013 12:31:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,583397,583397#msg-583397</guid>
            <title>Access violation in my project, works in new project (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,583397,583397#msg-583397</link>
            <description><![CDATA[ My project compiles fine if I insert some code from the examples, but the program crashes with:<br />
Unhandled exception at 0x552CEB8C (msvcr110d.dll) in comClient.exe: 0xC0000005: Access violation reading location 0x63697274.<br />
<br />
If I use the EXACT same code in a new project it works just fine, does exactly what it's supposed to do.<br />
<br />
Why isn't it working in my project?<br />
<br />
Here's what I'm using:<br />
<br />
try {<br />
  sql::Driver *driver;<br />
  sql::Connection *con;<br />
  sql::Statement *stmt;<br />
<br />
  /* Create a connection */<br />
  driver = get_driver_instance();<br />
  con = driver-&gt;connect(&quot;address:port&quot;, &quot;user&quot;, &quot;pass&quot;);<br />
  /* Connect to the MySQL test database */<br />
  con-&gt;setSchema(&quot;database&quot;);<br />
<br />
  stmt = con-&gt;createStatement();<br />
  stmt-&gt;execute(&quot;TRUNCATE TABLE words&quot;);<br />
<br />
  delete stmt;<br />
  delete con;<br />
<br />
} catch (sql::SQLException &amp;e) {<br />
  cout &lt;&lt; &quot;# ERR: SQLException in &quot; &lt;&lt; __FILE__;<br />
  cout &lt;&lt; &quot;(&quot; &lt;&lt; __FUNCTION__ &lt;&lt; &quot;) on line  » &quot;    &lt;&lt; __LINE__ &lt;&lt; endl;<br />
  cout &lt;&lt; &quot;# ERR: &quot; &lt;&lt; e.what();<br />
  cout &lt;&lt; &quot; (MySQL error code: &quot; &lt;&lt; e.getErrorCode();<br />
  cout &lt;&lt; &quot;, SQLState: &quot; &lt;&lt; e.getSQLState() &lt;&lt; &quot; )&quot; &lt;&lt; endl;<br />
}<br />
<br />
[Note]<br />
Afer setting some breakpoints and using the debugger, it seems the crash happens on:<br />
con = driver-&gt;connect(&quot;address:port&quot;, &quot;user&quot;, &quot;pass&quot;);<br />
<br />
Obviously using a working address, user and pass.]]></description>
            <dc:creator>Alexander Kesarion</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 08 Apr 2013 15:42:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,583091,583091#msg-583091</guid>
            <title>MySQL C++ Connector crashes executing INSERT with BLOB (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,583091,583091#msg-583091</link>
            <description><![CDATA[ I've stuck with a problem, trying to insert text as blob value, MySQL C++ connector crashed with exception: &quot;Access violation reading location&quot;. I've seen questions like this here, but none has been answered. Here is a code sample:<br />
<br />
#include &quot;mysql_connection.h&quot;<br />
#include &lt;cppconn/driver.h&gt;<br />
#include &lt;cppconn/exception.h&gt;<br />
#include &lt;cppconn/resultset.h&gt;<br />
#include &lt;cppconn/statement.h&gt;<br />
#include &lt;cppconn/prepared_statement.h&gt;<br />
<br />
#include &lt;string&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;sstream&gt;<br />
<br />
using namespace sql;<br />
<br />
void main(){<br />
    Connection  *dbConnection;<br />
    Driver *driver;<br />
    Connection *con;<br />
<br />
    driver = get_driver_instance();<br />
    con = driver-&gt;connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;);<br />
    Statement *stmt = con-&gt;createStatement();<br />
    try{<br />
        stmt-&gt;execute(&quot;USE test&quot;);<br />
        stmt-&gt;execute(&quot;DROP TABLE blob_test&quot;);<br />
        stmt-&gt;execute(&quot;CREATE TABLE blob_test(&quot;<br />
                        &quot;id         INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT,&quot;<br />
                        &quot;original   BLOB NOT NULL);&quot;);<br />
        char smallBlob[32];<br />
<br />
        for (char i = 0; i &lt; sizeof(smallBlob); ++i)<br />
        {<br />
        smallBlob<i> = i;<br />
        }<br />
        std::istringstream str(smallBlob);<br />
        PreparedStatement *pstmt = con-&gt;prepareStatement(&quot;INSERT INTO blob_test(id, original) VALUES (1, ?)&quot;);<br />
<br />
        pstmt-&gt;setBlob( 1, &amp;str);<br />
        pstmt-&gt;executeUpdate();<br />
    }catch(sql::SQLException &amp;e){<br />
        std::cerr &lt;&lt; &quot;# ERR: &quot; &lt;&lt; e.what();<br />
        std::cerr &lt;&lt; &quot; (MySQL error code: &quot; &lt;&lt; e.getErrorCode();<br />
        std::cerr &lt;&lt; &quot;, SQLState: &quot; &lt;&lt; e.getSQLState() &lt;&lt; &quot; )&quot; &lt;&lt; std::endl;<br />
    }<br />
}<br />
<br />
Thanks in advance!</i>]]></description>
            <dc:creator>Denis Makarskiy</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 04 Apr 2013 05:51:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,582709,582709#msg-582709</guid>
            <title>MySQL - Connector with Code::Blocks Windows XP 32bit (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,582709,582709#msg-582709</link>
            <description><![CDATA[ I have a problem with the connector. The integration from the includes an libs in Code::Blocks works well, compiling too.<br />
<br />
But when starting the application, it crashes everytime when open the mysql-connection. I've tried it also with the example-programm from the mysql-website, but the same result.<br />
<br />
After consulting google, I guess the problem could be that the &quot;libmysql&quot; from the connector was compiled with Microsoft C++ Express, and so only works in Programms compiled with it, too.<br />
<br />
May it help, to compile the connector myself from the source-code with MinGW, or is there, because this is a bit difficult, already an connector works with code::blocks?<br />
<br />
Or may my problem be another one?<br />
<br />
Thanks for helping!]]></description>
            <dc:creator>Benedikt Petschl</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sat, 30 Mar 2013 10:22:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,582045,582045#msg-582045</guid>
            <title>MySQL C++ Connector won't connect - returns unrecognized or ambiguous flag (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,582045,582045#msg-582045</link>
            <description><![CDATA[ I am creating a c++ program that will connect to an existing, live, functioning MySQL dB.  I cut-n-pasted the example program in, for verifying being able to get a connection.  THAT example code wouldn't compile.... so I reverted to the &quot;complete example&quot; program...  which does compile at least.  But when I run it in debug mode, it fails on the line where the driver is creating a connection.  Here's the code:<br />
<br />
//***********************************<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;iostream&gt;<br />
#include &quot;mysql_connection.h&quot;<br />
#include &lt;cppconn/driver.h&gt;<br />
#include &lt;cppconn/exception.h&gt;<br />
#include &lt;cppconn/resultset.h&gt;<br />
#include &lt;cppconn/statement.h&gt;<br />
<br />
using namespace std;<br />
<br />
int main(void)<br />
{<br />
cout &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Running 'SELECT 'Hello World!' »<br />
   AS _message'...&quot; &lt;&lt; endl;<br />
<br />
try {<br />
  sql::Driver *driver;<br />
  sql::Connection *con;<br />
  sql::Statement *stmt;<br />
  sql::ResultSet *res;<br />
<br />
  /* Create a connection */<br />
printf(&quot;before the driver gets created\n&quot;);<br />
  driver = get_driver_instance();<br />
printf(&quot;afer driver gets created before connection\n&quot;);<br />
  con = driver-&gt;connect(&quot;tcp://127.0.0.1:3306&quot;, &quot;root&quot;, &quot;&quot;);<br />
printf(&quot;after connection created\n&quot;);<br />
  /* Connect to the MySQL test database */<br />
  con-&gt;setSchema(&quot;test&quot;);<br />
<br />
etc.<br />
//***************************<br />
<br />
The only difference from the &quot;complete example&quot; is in the step that creates the connection from the driver, in that I have changed the pwd to be blank, because there is no pwd on this test database.  The step that creates the connection, fails. It displays a window that says &quot;Signal Caught&quot; with text&gt;&gt;<br />
<br />
Signal received: ? (Unknown signal)<br />
For program ca2httplistener, pid 3,244<br />
<br />
You may discard the signal or forward it and you may continue or pause the process<br />
<br />
I am given the choice to Discard and Pause, Discard and Continue, or Forward and Continue.  But no matter which choice I take, it displays:<br />
<br />
<br />
What the heck???]]></description>
            <dc:creator>Warren Burns</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 21 Mar 2013 19:59:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,581736,581736#msg-581736</guid>
            <title>Error in using mysql-connector-c++-1.1.2-linux-glibc2.3-x86-32bit (3 replies)</title>
            <link>http://forums.mysql.com/read.php?167,581736,581736#msg-581736</link>
            <description><![CDATA[ I have an error compiling C++ project using mysql-connector-c++-1.1.2-linux-glibc2.3-x86-32bit <br />
i got this error <br />
usr/bin/ld: warning: libmysqlclient.so.18, needed by /root/sources/mysql-connector-c++-1.1.2-linux-glibc2.3-x86-32bit/lib/libmysqlcppconn.so, not found (try using -rpath or -rpath-link)<br />
/root/sources/mysql-connector-c++-1.1.2-linux-glibc2.3-x86-32bit/lib/libmysqlcppconn.so: undefined reference to `mysql_stmt_execute@libmysqlclient_18'<br />
<br />
I'm using mysql-connector-c-6.0.2-linux-glibc2.3-x86-32bit<br />
it contains libmysql.so.16<br />
i can't find a source for libmysqlclient.so.18 for Redhat 5]]></description>
            <dc:creator>Basma Emad</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Wed, 27 Mar 2013 08:48:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,580436,580436#msg-580436</guid>
            <title>getting segmentation fault in the program (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,580436,580436#msg-580436</link>
            <description><![CDATA[ I am getting a segmentation fault sometimes in my application(It comes very rarerly, like once in 300 runs of program. Since it doesnt come always so I cant gdb it).<br />
<br />
*** Aborted at 1362124211 (unix time) try &quot;date -d @1362124211&quot; if you are using GNU date ***<br />
PC: @           0x8ae07b my_stat<br />
*** SIGSEGV (@0x0) received by PID 7495 (TID 0x7f0bbfafe700) from PID 0; stack trace: ***<br />
    @     0x7f0bc28edeaf (unknown)<br />
    @           0x8ae07b my_stat<br />
    @           0x8ac4f1 my_read_charset_file<br />
    @           0x8acf08 init_available_charsets<br />
    @     0x7f0bc1dcb952 __pthread_once_internal<br />
    @           0x8ad28c get_charset_by_csname<br />
    @           0x8b990d mysql_init_character_set<br />
    @           0x8ba9fb mysql_real_connect<br />
<br />
I am not sure why I am getting this. Any ideas what it means or if I can use this information to reproduce this.]]></description>
            <dc:creator>arun d</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sun, 03 Mar 2013 00:24:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,579369,579369#msg-579369</guid>
            <title>The application was unable to start correctly (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,579369,579369#msg-579369</link>
            <description><![CDATA[ I was able to get the program listed here <a href="http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html"  rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html</a>  to compile and link with VC++ 2012, but the program won't run. Get the error message &quot;The application was unable to start correctly (address here) Click OK to close the application).&quot; I copied libmysql.dll and mysqlcppconn.dll into the same folder as the program executable. I get the same error in both debug and release builds.<br />
<br />
I have the MySQL database server running on a different computer than the one I am using to build the application program.  I copied libmysql.lib from that other computer so that my program could link.  Could that be the problem?  I am using the 32-bit version of the server instead of the 64-bit version.]]></description>
            <dc:creator>Melvin Stober</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sun, 14 Apr 2013 01:49:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,579076,579076#msg-579076</guid>
            <title>#include &lt;boost/variant.hpp&gt; Problem! (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,579076,579076#msg-579076</link>
            <description><![CDATA[ I am using MS VS 2008 and I am developing a program, which shall use MySQL server on another PC. I downloaded the MySQL Connector/C++. I included &quot;mysql_connection.h&quot;, but the compiler cannot find &quot;&lt;boost/variant.hpp&gt;&quot;.<br />
<br />
Pls, help me!]]></description>
            <dc:creator>Ivelin Ivanov</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Wed, 13 Feb 2013 08:40:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,578568,578568#msg-578568</guid>
            <title>Cannot connect to a MySQL database from a C++ program with MySQL Connector/C++: exception thrown (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,578568,578568#msg-578568</link>
            <description><![CDATA[ I have a connection problem to a MySQL database from a C++ program:<br />
<br />
std::string server, user, password;<br />
SetParams(server, user, password);<br />
boost::shared_ptr&lt;sql::Connection&gt; conn;<br />
sql::Driver *driver = get_driver_instance();<br />
<br />
if(driver == 0) { /* error; never reached */ }<br />
<br />
try {<br />
    conn.reset(driver-&gt;connect(server, user, password));<br />
<br />
    assert(conn != 0);<br />
<br />
    if(!conn-&gt;isClosed())    // &lt;-- exception thrown<br />
    {<br />
        // Connection established<br />
    }<br />
    else {<br />
        // Connection failed<br />
    }<br />
}<br />
catch (sql::SQLException &amp;e)<br />
{<br />
    cerr &lt;&lt; e.what &lt;&lt; e.getErrorCode() &lt;&lt; e.getSQLState() &lt;&lt; endl;<br />
}<br />
The sql::Connection::isClosed() function throws this exception:<br />
<br />
SQLException: Connection has been closed  <br />
MySQL error code: 0  <br />
SQLState: HY000<br />
The values for server, user and password are correct (they work connecting from MySQL-Workbench), the DB is up and running.<br />
<br />
I do not know where else to look...<br />
Thank you.<br />
<br />
Platform:<br />
Linux - OpenSuse 11.4<br />
MySQL 5.x<br />
MySQL Connector/C++ 1.0.5  <br />
<br />
*** UPDATE ***<br />
<br />
The code as shown here works correctly. The problem must be somewhere else in the program...]]></description>
            <dc:creator>Pietro Mele</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 07 Feb 2013 11:09:51 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,576488,576488#msg-576488</guid>
            <title>Limit on result set (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,576488,576488#msg-576488</link>
            <description><![CDATA[ Hi<br />
Is there any limitation about returned resultset on number of returned rows or size of returned rows?<br />
Probably my resultset will be more than 100000 rows.<br />
<br />
Thanks]]></description>
            <dc:creator>nima chavoshi</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sun, 23 Dec 2012 19:36:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,576225,576225#msg-576225</guid>
            <title>Application getting crashed in windows server 2012 (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,576225,576225#msg-576225</link>
            <description><![CDATA[ Hi,<br />
<br />
  My application uses MySQL ODBC Connector version 3.51.27 and my application is written in c++  and uses MySQL connector/c++ to connect to MySQL.The application getting crashed while using the ODBC Connector to execute query in Windows Server 2012.But my application is running fine in all other Windows platform like Windows XP,Windows 7.I changed the ODBC Connector version to 3.51.30 in Windows Server 2012 and Started the application.Now application is running fine but when i enable Connection Pooling it getting crashed.Please help on this to solve the problem]]></description>
            <dc:creator>Senthil Murugan</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 17 Dec 2012 21:03:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,575920,575920#msg-575920</guid>
            <title>/usr/bin/ld: cannot find -lmysqlcppconn (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,575920,575920#msg-575920</link>
            <description><![CDATA[ Hi<br />
<br />
New in c++ and im trying to connect to mysql database did in java works fine.when to do it in c++ project followed all the instruction from <a href="http://planet.mysql.com/entry?id=18341;but"  rel="nofollow">http://planet.mysql.com/entry?id=18341;but</a> it gives me this error.<br />
<br />
g++     -o dist/Debug/GNU-Linux-x86/cppapplication_2 build/Debug/GNU-Linux-x86/main.o -L/usr/local/lib -L/usr/local/include/mysql-connector-c++-1.0.5-linux-glibc2.3-x86-32bit -lmysqlcppconn -lmysqlcppconn-static -lmysql -lmysqlclient <br />
/usr/bin/ld: cannot find -lmysqlcppconn<br />
/usr/bin/ld: cannot find -lmysqlcppconn-static<br />
/usr/bin/ld: cannot find -lmysql<br />
/usr/bin/ld: cannot find -lmysqlclient<br />
<br />
Please help my boss wants this c++ for what reason i dnt know.]]></description>
            <dc:creator>Vusi Sindane</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Wed, 12 Dec 2012 08:17:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,574618,574618#msg-574618</guid>
            <title>mysqlcppconn.dll Cannot find or open PDB file (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,574618,574618#msg-574618</link>
            <description><![CDATA[ I am trying to build a simple MySQL db application in VC++ and have run into a slight problem.<br />
<br />
I am using MySQL Connector C++ 1.1.0 and Visual Studio 2012 (Premium if that matters)<br />
<br />
&lt;code&gt;<br />
// ConsoleApplication1.cpp : Defines the entry point for the console application.<br />
//<br />
<br />
#include &quot;stdafx.h&quot;<br />
<br />
#include &lt;cstdio&gt;<br />
#include &lt;cstdlib&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;sstream&gt;<br />
#include &lt;memory&gt;<br />
#include &lt;string&gt;<br />
#include &lt;stdexcept&gt;<br />
<br />
/* MySQL Connector/C++ specific headers */<br />
#include &lt;driver.h&gt;<br />
#include &lt;connection.h&gt;<br />
#include &lt;statement.h&gt;<br />
#include &lt;prepared_statement.h&gt;<br />
#include &lt;resultset.h&gt;<br />
#include &lt;metadata.h&gt;<br />
#include &lt;resultset_metadata.h&gt;<br />
#include &lt;exception.h&gt;<br />
#include &lt;warning.h&gt;<br />
<br />
#include &quot;mysql_driver.h&quot;<br />
#include &quot;mysql_connection.h&quot;<br />
<br />
#define DBHOST &quot;tcp://127.0.0.1:3306&quot;<br />
#define USER &quot;root&quot;<br />
#define PASSWORD &quot;root&quot;<br />
#define DATABASE &quot;test&quot;<br />
<br />
using namespace std;<br />
using namespace sql;<br />
<br />
int _tmain(int argc, char *argv[]){<br />
    // I'm alive<br />
    cout &lt;&lt; &quot;Hello World!&quot; &lt;&lt; endl;<br />
<br />
    // necessary variables<br />
    Driver *driver;<br />
    Connection* con;<br />
    Statement *stmt;<br />
    ResultSet *res;<br />
    /*PreparedStatement *prep_stmt;<br />
    Savepoint *savept;*/<br />
<br />
    //<br />
    driver = get_driver_instance();<br />
<br />
    // Connect to DB<br />
    con = driver-&gt;connect(&quot;tcp//127.0.0.1:3306&quot;, &quot;root&quot;, &quot;root&quot;);<br />
<br />
    // <br />
    con-&gt;setAutoCommit(false);<br />
<br />
    // set schema<br />
    con-&gt;setSchema(&quot;world&quot;);<br />
<br />
    // create statement object<br />
    stmt = con-&gt;createStatement();<br />
<br />
    // alert user<br />
    cout &lt;&lt; &quot;Executing query: \&quot;SELECT * FROM city\&quot;&quot; &lt;&lt; endl;<br />
<br />
    // execute query &quot;SELECT * FROM city&quot;<br />
    res = stmt-&gt;executeQuery(&quot;SELECT * FROM city&quot;);<br />
<br />
    // alert user<br />
    cout &lt;&lt; &quot;\tRetrieved &quot; &lt;&lt; res-&gt;rowsCount() &lt;&lt; &quot; row(s).&quot; &lt;&lt; endl;<br />
<br />
    // fetch data<br />
    while(res-&gt;next()){<br />
        cout &lt;&lt; res-&gt;getString(&quot;Name&quot;) &lt;&lt; endl;<br />
    }<br />
<br />
    system(&quot;pause&quot;);<br />
<br />
    // Clean up<br />
    delete res;<br />
    delete stmt;<br />
    /*delete prep_stmt;*/<br />
    con-&gt;close();<br />
    delete con;<br />
<br />
    return 0;<br />
} // end main<br />
&lt;/code&gt;<br />
<br />
I am building this as a Win32 console application in Release mode, changed the configuration to x64 and have moved mysqlcppconn.dll to the output directory. The code is building correctly (*I think I have correctly added the necessary include directories as well as additional library dependencies/relevant paths). However, when I try to run it I get the following debug output:<br />
<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\RBanerjee\Documents\Visual Studio 2012\Projects\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe'. Symbols loaded.<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\RBanerjee\Documents\Visual Studio 2012\Projects\ConsoleApplication1\x64\Debug\mysqlcppconn.dll'. Cannot find or open the PDB file.<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\libmysql.dll'. Module was built without symbols.<br />
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\libmysql.dll'<br />
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\libmysql.dll'. Module was built without symbols.<br />
'ConsoleApplication1.exe' (Win32): Unloaded 'C:\Windows\System32\libmysql.dll'<br />
The program '[4172] ConsoleApplication1.exe' has exited with code -1073741701 (0xc000007b).<br />
<br />
I am a little lost as to what to do next, I really just want to be able to develop a Windows application that can connect to a MySQL db and interact with it. I would appreciate any help with this problem or a pointer to some other tutorial.<br />
<br />
Thanks]]></description>
            <dc:creator>Rohit Banerjee</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 26 Nov 2012 07:16:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,574530,574530#msg-574530</guid>
            <title>Conn-&gt;close() crashes (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,574530,574530#msg-574530</link>
            <description><![CDATA[ Conn-&gt;close() crashes, i dont know why and this happens some times, iam not able to decipher why?<br />
<br />
Our production code uses and it crashes some times and gives nightmare to us from customers?<br />
Any help is appreciated!<br />
<br />
Thanks!<br />
Sannthosh]]></description>
            <dc:creator>santhosh edukulla</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sat, 24 Nov 2012 16:55:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,574471,574471#msg-574471</guid>
            <title>Mysql C++ connector crash issues (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,574471,574471#msg-574471</link>
            <description><![CDATA[ Team,<br />
<br />
I am trying to use mysqlclient version 16 and Mysql c++ connector to connect to the Mysql database and perform some DB operations. The code for our product relying on these libraries is already written. Mysql Server version  5.1.56. I could see that it is crashing at various occasions.<br />
<br />
Below are few crash dumps. Any idea why these are happening? Typically during close connection and create connection. <br />
1/ For close connection, Iam using mSqlCon-&gt;close()<br />
2/ For create connection iam using some thing like below:<br />
driver = get_driver_instance();<br />
mSqlCon = driver-&gt;connect( connection_properties );<br />
<br />
mSqlCon is of type sql::Connection *. Any help is appreciated!!<br />
<br />
<br />
#0  0x00007f82b4f064ff in ?? () from /usr/local/lib64/mysql/libmysqlclient.so.16<br />
#1  0x00007f82b4f06758 in net_real_write () from /usr/local/lib64/mysql/libmysqlclient.so.16<br />
#2  0x00007f82b4f06c3b in net_flush () from /usr/local/lib64/mysql/libmysqlclient.so.16<br />
#3  0x00007f82b4f03279 in mysql_real_connect () from /usr/local/lib64/mysql/libmysqlclient.so.16<br />
#4  0x00007f82b4a630d7 in sql::mysql::NativeAPI::LibmysqlStaticProxy::real_connect (this=&lt;value optimized out&gt;, mysql=0x7f82ac041680, <br />
    host=0x7f82ac053d80 &quot;K&quot;, user=0x4f &lt;Address 0x4f out of bounds&gt;, passwd=0x0, db=0x35a5d367fc14006c &lt;Address 0x35a5d367fc14006c out of bounds&gt;, <br />
    port=3306, unix_socket=0x7f82ac041680 &quot;\a&quot;, client_flag=140199208425088)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/nativeapi/libmysql_static_proxy.cpp:316<br />
#5  0x00007f82b4a649a9 in sql::mysql::NativeAPI::MySQL_NativeConnectionWrapper::connect (this=0x7f82ac0d22d0, host=&lt;value optimized out&gt;, <br />
    user=&lt;value optimized out&gt;, passwd=&lt;value optimized out&gt;, db=&lt;value optimized out&gt;, port=&lt;value optimized out&gt;, socket_or_pipe=..., <br />
    client_flag=140199208425088) at /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/shared_ptr.hpp:408<br />
#6  0x00007f82b49f8ebe in sql::mysql::MySQL_Connection::init (this=0x7f82ac0d3740, properties=...)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_uri.h:51<br />
#7  0x00007f82b49f57b3 in MySQL_Connection (this=0x7f82ac0d3740, _driver=&lt;value optimized out&gt;, _proxy=&lt;value optimized out&gt;, properties=...)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_connection.cpp:141<br />
#8  0x00007f82b4a062cd in sql::mysql::MySQL_Driver::connect (this=0x7f82ac0466e0, properties=...)<br />
    at /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/scoped_ptr.hpp:96<br />
<br />
<br />
#0  0x00007fbf785e7745 in free () from /lib64/libc.so.6<br />
#1  0x00007fbf79b49224 in __gnu_cxx::new_allocator&lt;sql::mysql::MySQL_DebugEnterEvent const*&gt;::deallocate (this=&lt;value optimized out&gt;, <br />
    __nstart=0x7fbf740dbc76, __nfinish=0x7fbf740dbc80) at /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/ext/new_allocator.h:86<br />
#2  std::_Deque_base&lt;sql::mysql::MySQL_DebugEnterEvent const*, std::allocator&lt;sql::mysql::MySQL_DebugEnterEvent const*&gt; &gt;::_M_deallocate_node (<br />
    this=&lt;value optimized out&gt;, __nstart=0x7fbf740dbc76, __nfinish=0x7fbf740dbc80)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_debug.cpp:401<br />
#3  std::_Deque_base&lt;sql::mysql::MySQL_DebugEnterEvent const*, std::allocator&lt;sql::mysql::MySQL_DebugEnterEvent const*&gt; &gt;::_M_destroy_nodes (<br />
    this=&lt;value optimized out&gt;, __nstart=0x7fbf740dbc76, __nfinish=0x7fbf740dbc80)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_debug.cpp:497<br />
#4  0x00007fbf79b491d0 in ~_Deque_base (this=0x7fbf74049db00000, __in_chrg=&lt;value optimized out&gt;)<br />
    at /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_deque.h:425<br />
#5  0x00007fbf79b48def in ~MySQL_DebugLogger (this=0x7fbf740444d0, __in_chrg=&lt;value optimized out&gt;)<br />
    at /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_deque.h:703<br />
#6  0x00007fbf79b4829f in checked_delete&lt;sql::mysql::MySQL_DebugLogger&gt; (this=&lt;value optimized out&gt;)<br />
    at /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/checked_delete.hpp:34<br />
#7  boost::detail::sp_counted_impl_p&lt;sql::mysql::MySQL_DebugLogger&gt;::dispose (this=&lt;value optimized out&gt;)<br />
    at /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/detail/sp_counted_impl.hpp:78<br />
#8  0x00007fbf79b3ae22 in ~MySQL_ConnectionData (this=0x7fbf740d6140, __in_chrg=&lt;value optimized out&gt;)<br />
    at /build/cteam/bs/linux-x86_64/connector-common-alt-64bit/boost/include/boost-1_39/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145<br />
#9  ~MySQL_Connection (this=0x7fbf740d6140, __in_chrg=&lt;value optimized out&gt;)<br />
    at /export/home2/tmp/cteam/bs/connector-c++-64bit/src/mysql-connector-c++-1.1.1/driver/mysql_connection.cpp:162<br />
<br />
Thanks!<br />
Santhosh]]></description>
            <dc:creator>santhosh edukulla</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Sat, 24 Nov 2012 17:02:46 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,574239,574239#msg-574239</guid>
            <title>Can't compile in MS Visual Studio 2010 due to a missing file 'libmysql.lib' (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,574239,574239#msg-574239</link>
            <description><![CDATA[ I downloaded the 64-bit MSI  package.  And it seems to be missing this one file:<br />
<br />
libmysql.lib <br />
<br />
where can I get this file?<br />
<br />
thanks<br />
<br />
Pavan]]></description>
            <dc:creator>Pavan Shah</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Tue, 20 Nov 2012 21:29:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,574097,574097#msg-574097</guid>
            <title>example for connector in visual studio 2008 (2 replies)</title>
            <link>http://forums.mysql.com/read.php?167,574097,574097#msg-574097</link>
            <description><![CDATA[ To test the c++ mysql connector I reset my mysql(DBMS)，download the boost library, the sqlstring.h . now I test the example here:  <a href="http://dev.mysql.com/doc/refman/5.5/en/connector-cpp-examples-complete-example-1.html"  rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/connector-cpp-examples-complete-example-1.html</a><br />
<br />
But when I run it the ide says no  &quot;_get_driver_instance&quot;,and...I saw the mysql Official Guide，there is no more &quot;get_driver_instance&quot;...holy shit! do you know how long I spend at this thing...I'm going to crazy.<br />
<br />
Is anyone could give a effective example use the latest version of the mysql(DBMS) and mysql connector/C++ ? thank you in advance.]]></description>
            <dc:creator>yuanjie chen</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 26 Nov 2012 11:20:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,573351,573351#msg-573351</guid>
            <title>Error 1102 Incorrect Database Name (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,573351,573351#msg-573351</link>
            <description><![CDATA[ I have no clue what this means, tried connecting to mysql server with the following<br />
<br />
driver = sql::mysql::get_mysql_driver_instance()<br />
connection = driver-&gt;connect(&quot;//&lt;ip&gt;&quot;, username, password)<br />
<br />
I am making this call on Linux to a Linux mysql server if that helps]]></description>
            <dc:creator>Brian Ryall</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Fri, 09 Nov 2012 13:25:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,571726,571726#msg-571726</guid>
            <title>64 bit build for C++ connectors (4 replies)</title>
            <link>http://forums.mysql.com/read.php?167,571726,571726#msg-571726</link>
            <description><![CDATA[ Hi, <br />
<br />
I'm trying to rebuild an existing (and working) DLL which connects MetaTrader to MYSQL. I've installed the SDK, the compiler updates and everything suggested. I get a 'succesfull' build in Visual Studio 2010 Express BUT..... MetaTrader 5 won't load the DLL. <br />
<br />
I've looked at the DLL using dependency walker and the DLL looks like it's in 64 bit format at the top level with mysqlcppconn.dll in 64 bit, MSVCP90 and MSVCR90 dlls also in 64 bit mode BUT.....libmysql.dll looks like it's still in 32 bit mode along with ADVAPI32, USER32 and Kernel32 dlls. <br />
<br />
Oddly there is no 64 bit version of libmysql.dll in the 64 MSI installer package. <br />
<br />
Kind of pulling my hair out with this. MetaTrader won't give any error reporting apart from &quot;Cannot load DLL&quot; - <br />
<br />
Anyone got any ideas what I'm doing wrong? Is there a 64 bit version of the libmysql.dll?? If so anyone know where it is? I might well be barking totally up the wrong tree with this line of enquiry but I've tried everything else I can think of. <br />
<br />
cheers]]></description>
            <dc:creator>C Scruby</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 22 Oct 2012 14:09:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,571564,571564#msg-571564</guid>
            <title>How to prevent program from crashing if mysql host is not reachable (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,571564,571564#msg-571564</link>
            <description><![CDATA[ I'm using the MySQL Connector for c++<br />
<br />
I'm trying to connect to a remote MySQL server which happens to be offline at the moment and I noticed that my program throws an exception and aborts!!<br />
It is OK that it could not connect however I'd like to keep my program running.<br />
because in case of a failed connection I'd like to try connecting to a different server but I cant if the program crashes after the first attempt.<br />
<br />
Is there a way to do prevent this crash? <br />
<br />
<br />
Thanks,<br />
<br />
<br />
here is the connection code:<br />
<br />
Connection * conn;   <br />
mysql::MySQL_Driver *driver;<br />
<br />
try<br />
{<br />
    driver =  mysql::get_mysql_driver_instance();<br />
    conn = driver-&gt;connect(&quot;host1&quot;, &quot;user&quot;, &quot;pswd&quot;);<br />
} catch (SQLException &amp;e) {<br />
        cout &lt;&lt; &quot;ERROR: SQLException in &quot; &lt;&lt; __FILE__;<br />
        cout &lt;&lt; &quot; (&quot; &lt;&lt; __func__&lt;&lt; &quot;) on line &quot; &lt;&lt; __LINE__ &lt;&lt; endl;<br />
        cout &lt;&lt; &quot;ERROR: &quot; &lt;&lt; e.what();<br />
        cout &lt;&lt; &quot; (MySQL error code: &quot; &lt;&lt; e.getErrorCode();<br />
        cout &lt;&lt; &quot;, SQLState: &quot; &lt;&lt; e.getSQLState() &lt;&lt; &quot;)&quot; &lt;&lt; endl;<br />
}<br />
catch (std::runtime_error &amp;e){<br />
        cout &lt;&lt; &quot;ERROR: runtime_error in &quot; &lt;&lt; __FILE__;<br />
        cout &lt;&lt; &quot; (&quot; &lt;&lt; __func__ &lt;&lt; &quot;) on line &quot; &lt;&lt; __LINE__ &lt;&lt; endl;<br />
        cout &lt;&lt; &quot;ERROR: &quot; &lt;&lt; e.what() &lt;&lt; endl;<br />
}]]></description>
            <dc:creator>James Barajas</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 22 Oct 2012 13:03:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,571026,571026#msg-571026</guid>
            <title>where can i find the example of the Connector/C++? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?167,571026,571026#msg-571026</link>
            <description><![CDATA[ where can i find the example of the Connector/C++?<br />
<br />
In refman-5.5-en.pdf i can find some article about example,but i can not find it in C:\Program Files\MySQL]]></description>
            <dc:creator>wefwef ewefwe</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Tue, 11 Dec 2012 13:29:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,567171,567171#msg-567171</guid>
            <title>Not able to connect using standalone_example (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,567171,567171#msg-567171</link>
            <description><![CDATA[ Hi there,<br />
<br />
I have installed mysql connector C++ but I have some trouble in connecting to the db.<br />
<br />
I used the simple standalone_example_docs1.cpp and when It tried to connect to the db (line 43: con = driver-&gt;connect(&quot;tcp://XXXXXXXXX:3306&quot;, &quot;XXXXXX&quot;, &quot;XXXXXX&quot;);) it returns the following errors: <br />
<br />
# ERR: SQLException in test_install.cc(main) on line 63<br />
# ERR: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay (MySQL error code: 1104, SQLState: 42000 )<br />
<br />
Some ideas?<br />
<br />
Thanks,<br />
Matteo]]></description>
            <dc:creator>matteo interlandi</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 06 Sep 2012 07:03:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,565177,565177#msg-565177</guid>
            <title>How can I get the auto generated key after insert? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?167,565177,565177#msg-565177</link>
            <description><![CDATA[ Hello <br />
<br />
I want to get the auto generated key after insert,I found there is one overloaded function in connection.h for prepareStatement.<br />
<br />
PreparedStatement * prepareStatement(const sql::SQLString&amp; sql, int autoGeneratedKeys) = 0;<br />
<br />
But how can I use it to return key?<br />
Thanks and regards!]]></description>
            <dc:creator>Vintray White</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Mon, 20 Aug 2012 06:55:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,564551,564551#msg-564551</guid>
            <title>MySQL Connector/C++ 1.1.1:  Microsoft Visual Studio 2010 (no replies)</title>
            <link>http://forums.mysql.com/read.php?167,564551,564551#msg-564551</link>
            <description><![CDATA[ Dear MySQL Users,<br />
<br />
A new GA (general availability) version of MySQL Connector/C++ has<br />
been made available: MySQL Connector/C++ 1.1.1 GA. <br />
<br />
The MySQL Connector/C++ provides a C++ API for connecting client applications to<br />
the MySQL Server 5.1 or newer. You can download the production release<br />
at:<br />
<br />
<a href="http://dev.mysql.com/downloads/connector/cpp/1.1.html"  rel="nofollow">http://dev.mysql.com/downloads/connector/cpp/1.1.html</a><br />
<br />
The MySQL driver for C++ offers an easy to use API derived from JDBC<br />
4.0. MySQL Workbench is using it successfully since years.<br />
<br />
We have improved the driver since the last GA release. Please see the<br />
documentation and the CHANGES file in the source distribution for a<br />
detailed description of bugs that have been fixed. The following<br />
features and bug fixes have been added:<br />
<br />
 * DatabaseMetaData::getSQLKeywords() updated to match MySQL 5.5. Note<br />
   that C/C++, just like C/JDBC, returns the same list for every MySQL<br />
   database version.<br />
<br />
 * Added MySQL_Connection::getLastStatementInfo() which returns back<br />
   the value of the mysql_info() function of the MySQL Client Library<br />
   (libmysql).<br />
<br />
 * Added new method ResultSetMetaData::isNumeric() and implemented it<br />
   in all classes that subclass from it.<br />
<br />
 * Fixed the bug causing compilation errors in Microsoft Visual Studio<br />
   2010 if stdint.h was included. See <a href="http://bugs.mysql.com/bug.php?id=60307"  rel="nofollow">http://bugs.mysql.com/bug.php?id=60307</a><br />
<br />
 * Fixed bug making statement that did not raise any warning to return<br />
   warnings from previously executed statement.<br />
<br />
 * Fixed stores(Lower|Mixed)Case(Quoted)Identifiers methods.<br />
<br />
 * URI format has been extended to better fit IPv6 addresses. You now<br />
   can use [] to separate host part of the URI.<br />
<br />
 * Built against libmysql 5.5.27 enabling support of authentification<br />
   plugins and IPv6.<br />
<br />
<br />
You can find further details, including usages examples, in the<br />
documentation at:<br />
<br />
<a href="http://dev.mysql.com/doc/en/connector-cpp.html"  rel="nofollow">http://dev.mysql.com/doc/en/connector-cpp.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 09 Aug 2012 21:15:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,563765,563765#msg-563765</guid>
            <title>Prepared Statements not getting closed (11 replies)</title>
            <link>http://forums.mysql.com/read.php?167,563765,563765#msg-563765</link>
            <description><![CDATA[ Using MySQL Connector C++ 1.1.0<br />
MySQL server 5.5<br />
<br />
I'm having a problem with prepared statements not getting closed every time even though I explicitly close the prepared statement in my method.<br />
The method gets called back-to-back three times every 50ms.<br />
When it is called back-to-back, the prepared statement only gets closed once out of the three times.  so eventually I get an exception that I have exceeded the maximum number of prepared statements.<br />
<br />
query: show global status like '%Com_Stmt%'; confirms that only about 1/3 of all<br />
prepared statements created get closed.<br />
<br />
The MySQL log show the following pattern:<br />
Prepare SELECT * FROM myTbl WHERE ID = ? and name = ? <br />
Execute SELECT * FROM myTbl WHERE ID = '1' and name = 'John'<br />
Prepare SELECT * FROM myTbl WHERE ID = ? and name = ? <br />
Execute SELECT * FROM myTbl WHERE ID = '2' and name = 'Josh'<br />
Prepare SELECT * FROM myTbl WHERE ID = ? and name = ? <br />
Execute SELECT * FROM myTbl WHERE ID = '3' and name = 'Mike'<br />
Close stmt<br />
.....<br />
<br />
so the log confirms that the statement does not get closed every time.<br />
<br />
but when I run my program my print statements show the following pattern:<br />
creating prepared stmt<br />
executing prepared stmt<br />
closing prepared stmt<br />
creating prepared stmt<br />
executing prepared stmt<br />
closing prepared stmt<br />
......<br />
and there is NO exception thrown other then:<br />
<br />
&quot;can't create more than max_prepared_stmt_count statements (current value: 16382)&quot;<br />
after a few minutes.  So I don't know what's going on.<br />
<br />
<br />
Here is the code I'm running:<br />
<br />
ResultSet * DBMgr::getRecords( list&lt;string&gt; values) {<br />
<br />
    ResultSet * res;<br />
    PreparedStatement *pstmt;<br />
    SQLString query = &quot;SELECT * FROM myTbl WHERE ID = ? and name = ? &quot;;<br />
    string val;<br />
<br />
    cout &lt;&lt; &quot; creating prepared stmt\n&quot;;<br />
    pstmt = m_mySqlConnection -&gt; prepareStatement(query);<br />
    int i = 1;<br />
    BOOST_FOREACH(val, values)<br />
    {<br />
        pstmt-&gt;setString(i,val);<br />
        i++;<br />
    }<br />
    try {<br />
        cout &lt;&lt; &quot;executing prepared stmt\n&quot;;<br />
        res = pstmt-&gt;executeQuery();<br />
        cout &lt;&lt; &quot; closing prepared stmt\n;&quot;<br />
        pstmt-&gt;close();<br />
        delete pstmt;<br />
    }<br />
    catch (SQLException &amp;e) {<br />
        cout &lt;&lt; &quot;ERROR: SQLException in &quot; &lt;&lt; __FILE__;<br />
        cout &lt;&lt; &quot; (&quot; &lt;&lt; __func__&lt;&lt; &quot;) on line &quot; &lt;&lt; __LINE__ &lt;&lt; endl;<br />
        cout &lt;&lt; &quot;ERROR: &quot; &lt;&lt; e.what();<br />
        cout &lt;&lt; &quot; (MySQL error code: &quot; &lt;&lt; e.getErrorCode();<br />
    }<br />
    return res;<br />
}<br />
<br />
hope someone can advise.<br />
<br />
Thanks!<br />
<br />
-James]]></description>
            <dc:creator>James Barajas</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 30 Aug 2012 16:41:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?167,563439,563439#msg-563439</guid>
            <title>C++ MySQL Connector 1.1.0 Throws exception but query succeeds (3 replies)</title>
            <link>http://forums.mysql.com/read.php?167,563439,563439#msg-563439</link>
            <description><![CDATA[ The C++ MySQL Connector is throwing exceptions every time I try to insert a record into one of my MySQL tables.<br />
The error code is  (MySQL error code: 0, SQLState: 00000) <br />
but the query is successful.<br />
I also tried executing the exact same query directly on MySQL I get no error.<br />
so why is the connector throwing an exception if there is no error??<br />
how can I get around this? <br />
<br />
here is my code:<br />
<br />
void DBMgr::addRecord(string id, int num, string tblName)<br />
{<br />
<br />
    SQLString query;<br />
    Statement *stmt;<br />
    stmt = m_mySqlConnection -&gt; createStatement();<br />
<br />
    query = &quot;INSERT INTO &quot;;<br />
    query.append(tblName);<br />
    query.append(&quot; SET id= '&quot;);<br />
    query.append(id);<br />
    query.append(&quot;', num = '&quot;);<br />
    query.append(boost::lexical_cast&lt;std::string&gt;(num));<br />
    query.append(&quot;';&quot;);<br />
    cout &lt;&lt; &quot;executing query &quot;&lt;&lt; query &lt;&lt; endl;<br />
    try {<br />
   <br />
        stmt-&gt;executeQuery(query);<br />
        stmt-&gt;close();<br />
        delete stmt;<br />
    }<br />
    catch (SQLException &amp;e) {<br />
        cout &lt;&lt; &quot;ERROR: SQLException in &quot; &lt;&lt; __FILE__;<br />
        cout &lt;&lt; &quot; (&quot; &lt;&lt; __func__&lt;&lt; &quot;) on line &quot; &lt;&lt; __LINE__ &lt;&lt; endl;<br />
        cout &lt;&lt; &quot;ERROR: &quot; &lt;&lt; e.what();<br />
        cout &lt;&lt; &quot; (MySQL error code: &quot; &lt;&lt; e.getErrorCode();<br />
        cout &lt;&lt; &quot;, SQLState: &quot; &lt;&lt; e.getSQLState() &lt;&lt; &quot;)&quot; &lt;&lt; endl;<br />
    }<br />
}<br />
<br />
any help is appreciated.]]></description>
            <dc:creator>James Barajas</dc:creator>
            <category>MySQL Connector/C++</category>
            <pubDate>Thu, 02 Aug 2012 18:56:02 +0000</pubDate>
        </item>
    </channel>
</rss>
