Questions tagged [libmysql]

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

113 questions
3
votes
1 answer

g++ mysql linker error

I am trying to compile a program written in c++ with the following command line: g++ test.cpp pugixml-1.0/src/pugixml.cpp -lcurl -lmysqlclient -lmysqlcppconn-static -lboost_thread This goes all well on a Debian 32 Bit machine, but fails in Ubuntu…
mike
  • 880
  • 1
  • 8
  • 12
3
votes
0 answers

libmysql (c-api) slow compared to php-mysqli

I'm investigating why my C-test-program(libmysql) is almost twice as slow the same php-test(cli) program: I'm creating a prepared-statement and inserting 10 records. The php-cli-version(mysqlnd) is almost twice as fast as the C version using…
user914584
  • 571
  • 8
  • 15
2
votes
2 answers

Fetch numbers directly using MySQL C API

I'm using MySQL C API with C++ to connect to a database. I wold like so select some numbers from the database. Is there a way to fetch number types like INTEGER or DOUBLE into native C types like int or double directly without having to parse them…
SteakOverflow
  • 1,953
  • 13
  • 26
2
votes
1 answer

I am getting a strange error when trying to install mysqlclient on Ubuntu 18.04

sudo apt-get install libsqlite3-dev libmysqlclient-dev -y Output: After this operation, 10.5 MB of additional disk space will be used. Err:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2 …
Shailesh Chauhan
  • 204
  • 1
  • 12
2
votes
1 answer

Fail to build mysql connector/c (libmysql) from source in cygwin

I am trying to build MySQL's "Connector/C" from source in cygwin and there are problems. -some context- We could talk a lot about why anyone would want use libmysql in cygwin. In this case, it is just simpler to do some unix development on a windows…
Jsnydr
  • 70
  • 10
2
votes
1 answer

Unable to locate package libmysqlclient-dev

ruby 2.6.3 Ubuntu 16.04 Unable to locate package libmysqlclient-dev description: Fetching mysql2 0.5.2 Installing mysql2 0.5.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. To solve this I ran…
Umair Liaqat
  • 21
  • 1
  • 1
  • 4
2
votes
1 answer

How do I set up a embedded MySQL server in Qt

I tried this code from the MySQL reference but it crashes when it comes to the point mysql_options(mysql, MYSQL_READ_DEFAULT_GROUP, "libmysqld_client");. Does somebody has a working exmaple for a embedded server? #include static char…
Blacky
  • 111
  • 1
  • 1
  • 5
2
votes
1 answer

Setting up a server and can't find libmysqlclient under /usr

I am currently setting up a PHP 5.2 server (yes I know, but it is actually needed in this case) but I keep getting an error: configure: error: Cannot find libmysqlclient under /usr. The command that I am running is: ./configure…
inimrepus
  • 69
  • 3
  • 8
2
votes
0 answers

libmysqlclient hangs on vmsplice()

I am running an executable that uses libmysqlclient.so.15 on a 64bit kernel & 32bit user space compatibility mode. Once in a while, my program hangs on something from libmysql: #0 0xf7f01430 in __kernel_vsyscall () #1 0xf7b451e3 in vmsplice ()…
Himberjack
  • 5,682
  • 18
  • 71
  • 115
2
votes
0 answers

How do I link a third party dylib in a Mac OS X app using XCode 4.5? "Undefined symbols" error

I'm trying to use functions defined in a third-party dynamic library (libmysql) in a desktop app for Mac OS X. I'm using XCode 4.5.1 on Mac OS X v. 10.8.2. Here's what I've done so far: 1) I downloaded the Mac OS X 10.5 x86 64-bit C connector files…
chapka
  • 490
  • 1
  • 3
  • 11
1
vote
4 answers

Linux - Dependency libmysqlclient.so.15 not found

I start the instalation, now i receive a error for file dependencies see: root@ca [~/sitebuilder]# rpm -Uhv updates/*.rpm error: Failed dependencies: libmysqlclient.so.15()(64bit) is needed by…
user345824
1
vote
2 answers

mysqlclient with mingw

I want to use libmysqlclient on a project cross compiled to Windows via mingw. In order to link my program, I need "mysqlclient.a" but I'm not able to get it. I tried to create makefiles for mingw on windows for mysql client, but the configuration…
Congelli501
  • 2,403
  • 2
  • 27
  • 28
1
vote
3 answers

Install libmysqlclient-dev along with npm in dockers

I have an error when trying to install the libmysqlclient-dev package together with npm for some reason when installing libmysqlclient-dev it removes npm Step 10/26 : RUN apt-get install -y libmysqlclient-dev ---> Running in beae8aee9cd4 Reading…
1
vote
0 answers

How to Connect live database in c++ by using codeblocks

#include #include using namespace std; int main() { MYSQL* conn; conn = mysql_init(0); conn = mysql_real_connect(conn,"sql12.freemysqlhosting.net","sql123893..","nYES4ifTZ1","sql123893..", 0, NULL, 0); …
Harsh Kairamkonda
  • 387
  • 1
  • 6
  • 18
1
vote
1 answer

How Can I Fix This LNK1104 Error in Visual Studio?

First off, allow me to give you some background. I'm attempting to emulate a game from my childhood. A lot of work has been done with respect to emulating said game, and I've made some decent progress through the windows setup guide that can be…