Category : mysql-x-devapi

Trying to connect MySql and C++. Using mysql-connector-cpp with the mysqlxxdevapi driver Keep getting errors in the likes of this when I run the following: g++ Connector.cpp -I C:ProgramFilesboost_1_75_0 C:UsersmyUserAppDataLocalTempccN73Ip5.o:Connector.cpp (.text$_ZN6mysqlx4abi22r06common13Settings_impl4DataC1Ev[__ZN6mysqlx4abi22r06common13Settings_impl4DataC1Ev]+0x6c): undefined reference to `mysqlx::abi2::r0::common::Settings_impl::Data::init_connection_attr()’ below you can find the code: #include <iostream> #include <C:Usersthibvmysql-connector-cppincludemysqlxxdevapi.h> int main(int argc, const char* argv[]){ try { const char ..

Read more

I’ve (3) freshly installed mysql, (4) freshly installed Connector/C++ 8.0 X DevAPI, (5) did minimal configuration in my.cnf, (1) wrote a minimal C++ program, (2) build it, and after executing it gave the following output: $ sudo bin/sql [sudo] password for xxxxxx: CDK Error: unexpected message But when I use mysql it connects properly: $ ..

Read more

I am using Xcode, MySQL and XDevAPI. I have the following table on the database create table TABLE(ID INT, VALUE_01 INT, VALUE_02 INT, VALUE_03 INT); I have the following values on code the code: Table table(session, "TABLE"); int id; set<int> numbers; id = 2395; numbers.insert(1); numbers.insert(2); numbers.insert(3); So I wanted to try: table.insert("ID", "VALUE_01", "VALUE_02", ..

Read more