Quantcast
Channel: MySQL Forums - Connector/C++
Browsing all 527 articles
Browse latest View live
↧

C++ Project (1 reply)

Which is the best topic for my project and easy to implemented?

View Article


C++ Basics (1 reply)

What is the main role of #include in C programing?Explain!

View Article


C API Support for calling mysql stored procedure - Not working in case of...

Below code works fine in case of integer argument like CREATE PROCEDURE p1(IN p_in INT)but not for varchar arguments. varchar input parameter type is MYSQL_TYPE_STRING and output parameter type is...

View Article

Mysql c++ application help (2 replies)

I was wondering if anyone can help me figure how to do something. I have created an C++ application with a menu that links to mySql database to pull data from. I have managed to pull data from my...

View Article

Segmentation fault when inserting a large string (no replies)

I have a repeatable segmentation fault when using prepared statements with large chunks of data bound to a mediumblob data type. I’ve searched the outstanding bugs, but can’t find anything relevant,...

View Article


i got the below errors while executing the visual studio c++ console...

i have written the code in visual studio c++ in console application in that i am trying to connect to mysql database but i am getting the following errors 1) unresolved external symbol _mysql_close@4...

View Article

MySql C++ connector - conn->commit() doesn't throw exception (1 reply)

Hi, sql::Connection *conn I observed that conn->commit() doesn't throw exception if client loses connection to mysql server just before executing this commit statement. As no exception is thrown...

View Article

how to escape strings in mysqlcppconn (no replies)

Hello, i wrote a C++ program and using the mysqlcppconn library. Now i would love to escape sql special characters for make it more stable and save. I don't know how to do with that API. Of course i...

View Article


std::bad_alloc thrown on attemt to setSchema (1 reply)

Hi -- I have this really simple code: auto mysql_driver = get_driver_instance(); sql::Connection *c = mysql_driver->connect("172.17.0.1", "root", "tooth"); c->setSchema("mysql"); delete c; That...

View Article


Error trying to connect to MySQL with Eclipse (no replies)

Hello, I am trying to connect to the MySQL Database using Eclipse for C++. I have added the dynamic library mysqlcppconn.lib and also have the relevant dll files in my executable folder I get the...

View Article

SQLException by PreparedStatement::getMoreResults in example C++ code (1 reply)

Hi all, I got the following exception when running the example code here: http://dev.mysql.com/doc/connector-cpp/en/connector-cpp-tutorials-stored-routines-prepared-statement-with-result.html # ERR:...

View Article

How do I set the LOCAL INFILE option (for load data file command) using...

I am writing a C++ function using the C++ connector library that will take a table name and data file name and will use the LOAD DATA command to bulk load the data from the file. How can i set the...

View Article

Exit clean up when use "sql::Connection" after network disabled. (1 reply)

Hello ^^ I'm new on using mysql_cpp_conn with c++ and having a problem. below is my testing code, ----------------------------------------------- sql::Connection * _con; sql::Statement * _stmt; ......

View Article


Ineffective Prepared Delete Statement (no replies)

I'm attempting to execute a prepared delete statement like so: prep_stmt = conn->prepareStatement("DELETE FROM my_table WHERE my_column = ?"); sql::SQLString test_string = "\'asdf\'";...

View Article

C++ Connector / Json / Prepared Statements (1 reply)

For a JSON datatype which 'set' method should I use? for a string ... prep_statement->setString(2, pseudojson);

View Article


mysqlcppconn.dll RUNTIME advice and help (2 replies)

Hi to all, I would like to know 1. if it is possible to use mysql connector for c++ without the need of the mysqlcppconn.dll to be external (if it can be embed inside my executable c++ app and stay...

View Article

Unresolved Externals (1 reply)

Hello i have a problem with this mysql c++ connector i setup everything all includes and libraries and is still gives me an errors : What have i done so far : Additional Include Directories :...

View Article


build 2.0.3 source on minGW64 fails (1 reply)

Hello, I am trying to build Connector/C++ 2.0.3 source on windows10 64bit with mingw64 6.2.0 installed (x86_64-6.2.0-posix-seh-rt_v5-rev1). cmake configuration runs fine. However, I got below errors...

View Article

mixing mingw64 gcc and prebuilt vs14 2.0.3 library (2 replies)

Hello, I try to compile the example given by using ming64 6.2.0 on windows10 64bit machine. I use the prebuilt vs14 2.0.3 library. None of the connector API implementations can be found whether I use...

View Article

Connector/C++ fror OSX (1 reply)

Hi, ALL, On the download page for MySQL Connector/C++ for OSX it is said that it is compatible with 10.12, 10.11 and 10.10 for the latest version. There is also a link on that page which says:...

View Article
Browsing all 527 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>