Questions tagged [mysqlpp]

MySQL++ is a C++ wrapper for MySQL’s C API.

MySQL++ is a C++ wrapper for MySQL’s C API. It is built around the same principles as the Standard C++ Library, to make dealing with the database as easy as dealing with STL containers. In addition, MySQL++ provides facilities that let you avoid the most repetitive sorts of SQL within your own code, providing native C++ interfaces for these common tasks.

http://tangentsoft.net/mysql++/

17 questions
1
vote
2 answers

CMake Error: MYSQL_INCLUDE_DIR not found

I am trying to establish connection with MySQL in C++. For that i am using sqlpp11 and it's connector. sqlpp11 successfully build. sqllpp11-connector-mysql is not building properly because of some cmake error. CMake Error: The following variables…
Shravan40
  • 8,922
  • 6
  • 28
  • 48
1
vote
1 answer

reference error in mysqlpp

as many others I have got the problem to compile a program including mysqlpp. mysqlpp seems to be installed correctly, the library paths are set correctly in /etc/ld.so.conf also and are known (so I think): $ sudo ldconfig -p | grep…
Sprotti
  • 13
  • 2
1
vote
1 answer

MySQL++ malloc_error_break on mysqlpp::Query::store()

Buckle-up for this one. It's weird I can't find anything online about an error like this but it's driving me nuts. Hopefully you guys can shed some light on the issue. I'm using MySQL++ to get some basic data from a table. It connects to the…
Liandri
  • 313
  • 1
  • 3
  • 8
1
vote
0 answers

C++ Visual Studio mysqlpp serious memory leak

I've been scratching my head over this for the past month now and I still can't figure out what is going on. The problem is that I have a very serious memory leak on a C++ application running on Windows Server 2008, compiled using Visual Studio…
Lordmonkey
  • 43
  • 5
0
votes
1 answer

mysql++ global table variable

I have read through the documentation, and looked at the examples, but I still can't figure out how to assign a table to a global variable in C++. I might be a little spoiled. I'm coming from python and assigning a table to a global variable is…
nomadicME
  • 1,389
  • 5
  • 15
  • 35
0
votes
1 answer

mysqlpp's documented way to declare table structures is not able to be used in C header files

I'm using mysql++ (Tangentsoft) for years now (in C++) and due to some mass inserts, I'm trying to switch to their suggested way for using their (!!!) command size controlled way to do massinserts: an insert function that takes iterators as data…
Synopsis
  • 190
  • 10
0
votes
0 answers

missing timeout in mysql

I have a transaction running against a mysql server connected via tunnel through the Internet, so its sometimes instable (espc. when via WLAN). So I wrapped a few catches in C++/mysqlpp arround my code to do the needful and evtl. restart the whole…
Synopsis
  • 190
  • 10
0
votes
0 answers

mysqlpp's (Tangensoft) insertfrom with ON DUPLICATE KEY UPDATE

I searched a lot in the docs, but can't find an example or explanation upon the (detailed!) usage of Query::InsertPolicy in conjunction to the mass insertion function "insertfrom()". It just seems to limit things like packet size or likewise, but…
Synopsis
  • 190
  • 10
0
votes
1 answer

I can not explain SQLException in my program

I have a simple c++ program. There is "while" loop in which is being done query to database. I have excluded any potential possibility being the problem in reading values - the value on which program fails is processed normally if being processed…
0
votes
0 answers

Cannot import Mysql 5.7 dump with Chinese varchar(128) in Mysql 8.0

My Mysql5.7 database contains a restaurant menu with Chinese characters. I want to update to a newer Linux with a new database. This year I tried several times to update for Ubuntu 20 and MySQL 8.0, but all Chinese characters are wrong and don't…
Bart Mensfort
  • 995
  • 11
  • 21
0
votes
1 answer

Qt/MySQL++/vector iteration question

I've got a question regarding my vector iteration method within a Qt/MySQL++ project I'm working on at the moment. I've been using for loops to iterate through them so far, and being quite a beginner at C++, didn't realise that the generally…
n00b
  • 127
  • 3
  • 8
0
votes
0 answers

protobuff and mysqlpp multiply defined symbols found link error

1>mysqlpp_d.lib(mysqlpp_d.dll) : error LNK2005: "public: __cdecl std::basic_ostringstream,class std::allocator >::basic_ostringstream,class std::allocator >(int)"…
pomato
  • 1
0
votes
0 answers

C++ Connection to MySQL using mysql++

I am pretty new to C++ and to Linux (Ubuntu), so please don't kill me if I am a bit slow in understanding. I try to establish a connection to my SQL DB using C++ and the MySQL Connector mysql++. As for the development environment, I use Eclipse. As…
tuxasus
  • 41
  • 3
0
votes
1 answer

UseQueryResult is not a member of mysqlpp

That's the error I get when I run this code : if(mysqlpp::UseQueryResult res = conn.query(sql).use()) Whats more interesting is that the next line doesn't have any problems while(mysqlpp::Row row = res.fetch_row()) Really driving me crazy. I've…
stan
  • 4,885
  • 5
  • 49
  • 72
0
votes
1 answer

Converting mysqlpp::String to C++ int

Ok, I'm relatively new to using the mysqlpp library that is used in Visual Studio to connect to a MySQL database and am having trouble trying to convert a vector of type mysqlpp::String to a vector of type int. Does anyone have any experience with…
Josh Bradley
  • 4,630
  • 13
  • 54
  • 79
1
2