Libmysql is a client library for connecting C written application to MySql.
Questions tagged [libmysql]
113 questions
0
votes
0 answers
How to "disable" mysqlnd native type cast support in PHP
Backstory
We are migrating our projects codebase from PHP 5.3 to PHP 7.0 on a CentOS 6 platform.
The old stack uses Apache with PHP 5.3 libphp module + libmysql and the new stack uses Nginx with PHP 7.0 FPM + mysqlnd.
We have them configured to run…

Karl Viiburg
- 832
- 10
- 34
0
votes
1 answer
MySQL connector(libmysql/C) is very slow in get RES
"select * from tables" query in MySQL connector/libmysql C is very slow in getting the results:
Here is my code in C :
int getfrommysql() {
time_t starttime, endtime;
time(&starttime);
double st;
st = GetTickCount();
MYSQL…

Zhao Liu
- 3
- 1
0
votes
1 answer
mysql_ping causes SIGSEGV
I use c++ and mysql++ library. I have separate mysqlpp::Connection object on each thread. All mysqlpp options are default(ReconnectOption is disabled). Each thread keeps persistent connection to the MariaDB server. Before series of SQL queries I…

Alex
- 1,047
- 8
- 21
0
votes
2 answers
How to downgrade libmysqlclient
I just built a new dev box with Ubuntu 10.04.1 amd64 server on, installed all all libraries and stuff , but now my program segfaults randomly in libmysqlclient16.
Just to eliminate things I tried to downgrade to libmysqlclient15, as this is the…

Strahd_za
- 218
- 2
- 11
0
votes
1 answer
How to include libmysql in libwebsocket coding?
I am trying to use libwebsocket to build up my WebSocket server and I need to used libmysql in my code. I have install the libmysql and able to use it but I don't know how to include it using cmake in CMakeList.txt
I have include it in my…

kennyfung
- 1
- 1
0
votes
2 answers
Runtime "symbol lookup error" when accessing libmysqlclient.so functionality in C
Context: I am not certain whether this is my problem or the problem of the server this is running on. I am trying to compile and run a small utility, to become a cron job, that uses the mysql libraries. The program compiles successfully with the…

haslo
- 1,030
- 2
- 12
- 23
0
votes
1 answer
Cannot find -libmysql or undefinder reference with -mysqllib with mysql library
Cannot find -libmysql or undefinder reference with -mysqllib
Hi I have a problem with a regular connection to the database using the code blocks. If Include -libmysql -Cannot find, and if -mysqllib - undefinder reference. I also added a folder lib…

xodoss
- 1
0
votes
0 answers
How can i detect that a thread not created by me is finished ? (to call mysql_thread_end)
I have a problem with the design of mysql client library.
MySQL requires that each thread that uses the MySQL API first call mysql_thread_init()
and at the end call
mysql_thread_end().
If the thread fails to call
mysql_thread_end(),
then MySQL…

zeus
- 12,173
- 9
- 63
- 184
0
votes
1 answer
.app file not working in other MAC system
I have created a MAC application with libraries 'libmysqlclient.a' and 'libmysqlclient.18.dylib' with Objective-C language in Xcode 6.3.1 in OSX Yosemite 10.10.3. Its working fine when running through Xcode. And I also archived the .app file to…

shlok
- 113
- 8
0
votes
1 answer
c linux - memset raise Segmentation Fault in Release build, printf somehow can 'fix' it?
I'm getting segmentation fault on CentOS 7 64-bit, Release build (there's no issue in debug build)
I tried adding printf to locate where exactly the segfault happens, for below code, segfault raises at: memset(len_p, 0, sizeof(*len_p));
Also, If I…

jerry
- 1,196
- 2
- 9
- 21
0
votes
1 answer
mysql C API - mysql_stmt_fetch throw exception: access violation write at 0x00000008
I'm getting "Unhandled exception at 0x0369AF03 (libmysql.dll) in node.exe: 0xC0000005: Access violation writing location 0x00000008." error message while using mysql C API in a loop.
Environment:
Windows 7 32bit, Mysql 5.6
The error only occurs in…

jerry
- 1,196
- 2
- 9
- 21
0
votes
2 answers
Progress 4GL connecting to MySQL using libmysql.dll
I am trying to connect from Progress OpenEdge to MySQL using libmysql.dll and mysql-functions.i which I found online.
It works connecting from Progress OpenEdge 101b to MySql, but when I try to connect from Progress OpenEdge 1102 to MySql it crashes…

iceiceady
- 21
- 2
0
votes
0 answers
Merging from libmysqld DB to MySQL
MySQL provides a zero configuration DB library (libmysqld) which can create a standalone DB.
Can this standalone DB be merged into MySQL at a lightning speed?
SQLite DB can be merged into another at a blink of an eye, regardless of how much data it…

PS123
- 11
- 3
0
votes
1 answer
How to insert a binary stream in to MySQL without ASCII conversation?
I have an application written in "C" - debian distro (using libmysqlclient). My application is inserting a huge number of rows in to the database (around 30.000 rows/sec, row length ~ 150 B). Insertion takes many of CPU, because the client (my app)…

Jan Nejman
- 1
- 1
0
votes
1 answer
Multithreaded programming with libmysql
I'm using libmysql in a simple multithreaded app which will run on a uni-core embedded system processor.
I read here that the client library is almost thread-safe.
Do I need to serialise my app (say, with a mutex)?

Zaxter
- 2,939
- 3
- 31
- 48