Questions tagged [libmysql]

Libmysql is a client library for connecting C written application to MySql.

113 questions
1
vote
1 answer

g++ compile static with OpenSSL and MySQLClient

I have been looking for this issue on the internet, but can't find a solution. What I'm trying to achieve is to build a CGI-application with both dependencies of OpenSSL and MySQLClient. When I compile my program, with the following command: g++…
TVA van Hesteren
  • 1,031
  • 3
  • 20
  • 47
1
vote
1 answer

default-libmysqlclient-dev or libperconaserverclient20-dev?

To compile AzerothCore, I need to install default-libmysqlclient-dev (it's libmysqlclient-dev for debian 9). But since I use Percona instead of MySQL, I'm wondering if I should install default-libmysqlclient-dev or libperconaserverclient20-dev. I…
Barbz_YHOOL
  • 589
  • 4
  • 15
1
vote
0 answers

DBX Error: Driver could not be properly initialized

DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path.. The above error occurs when attempting to open SQL window…
J Vines
  • 182
  • 1
  • 16
1
vote
1 answer

Build python-mysqlclient against mariadb-connector-c

I am trying to compile python-mysqlclient against mariadb-connector-c in a Conda environment. That means that the install prefix is not /usr/local but, for example, $HOME/conda/envs/test. I also want to use the auth_gssapi_client.so plugin. Both…
Stefan Scherfke
  • 3,012
  • 1
  • 19
  • 28
1
vote
1 answer

debian stretch - libmysqlclient.a

I'm not a big fan of debian to begin with and this problem that I am facing at the moment makes me hate it. I want a static version of the libmysqlclient on debian but it seems impossible to find. I have installed everything with libmysql* and…
Crippin
  • 165
  • 1
  • 11
1
vote
1 answer

Setting collation_connection using libmysqlclient C API

I am using libmysqlclient to write a C program to inserts data (surprisingly) into a database. Character set of the table that code inserts into and it's collation are: CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci In my C program I used…
gst
  • 828
  • 5
  • 15
1
vote
1 answer

Creating triggers using embedded mysql C++

I am working with the libmysqld c library in a C++ application on windows in order to interface with an embedded mysql server i.e. a mysql server that is online for the lifetime of the process that embeds it. The application that creates the…
1
vote
1 answer

CMake linking to an import library

I need to link my project to the libmysql.dll dynamic library (I need to do it because I'm building my project as /MDd, reference: https://dev.mysql.com/doc/refman/5.6/en/c-api-building-clients.html) Now the tricky part is that it is an import…
1
vote
1 answer

How to get mysql to throw an error on update for no rows matched?

I want to know when an UPDATE query reports 0 rows matches. I'm using libmysql. Here's the code I'm using: char query[300] = {0}; snprintf(query, 300, "UPDATE `my_table` SET name='%s' WHERE id=%d", name, id); if (mysql_query(db, query))…
Zaxter
  • 2,939
  • 3
  • 31
  • 48
1
vote
1 answer

version node not found for symbol mysql_select_db@libmysqlclient_16

I was trying to build my app on linux using mysql c api, and got this error at link stage, it's working fine on windows. Please help, thanks! error message: /bin/ld: myapp.so : version node not found for symbol…
jerry
  • 1,196
  • 2
  • 9
  • 21
1
vote
2 answers

Valgrind: libmysql example program gives 'still reachable:' leak

I was using libmysql in a project and I always see the exact leak summary 'still reachable: 73,944 bytes in 21 blocks' every time in Valgrind, which shouldn't be there. Later I tested this sample program from this link: /* Simple C program that…
Zaxter
  • 2,939
  • 3
  • 31
  • 48
1
vote
1 answer

statically linking libmysqlclient ubuntu 12.04 32bits

I am using XAMPP and tried with a clean install of Ubuntu 12.04 in a VM, the results are the same. The program bellow compile and link easily with: gcc c_mysql.c -l mysqlclient -o c_mysql That is, produces the default dynamically liked program. But…
1
vote
1 answer

Error Installing Sphinx Requires libmysqlclient.so.16(libmysqlclient_16)(64bit)

I'm trying to install Sphinx Search on CENTOS 6.5 x86_64 standard server but am experiencing an issue. It throws error Requires libmysqlclient.so.16(libmysqlclient_16)(64bit). I already have libmysqlclient_16 installed. Please I would appreciate any…
andychukse
  • 520
  • 9
  • 19
1
vote
3 answers

Strange errors when linking to libmariadb

I'm currently develop an Objective-C library that links to the MariaDB C connector. I believe there is a problem with the library, though. Every time I execute my code I get very strange errors on the console. The -(id)init method of my library…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
1
vote
0 answers

How to use libmysql with Qt in windows?

I have been working on a project on a Linux operating system. I was using Qt for this purpose and was linking it to libmysqlclient to connect to mysql database. I had used the Mysql Connector-C for the connection. Now I need to shift this project to…