Questions tagged [libmysql]

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

113 questions
1
vote
2 answers

Delphi 7 Personal, MySQL using libmysql.dll + UTF8

I'm using Delphi 7 Personal. To access MySQL database I'm using libmysql.dll + very simple wrapper, which is good enough for me. Except one thing ... it doesn't seem to handle Utf8... is that possible somehow to pass Utf8 strings from libmysql to…
migajek
  • 8,524
  • 15
  • 77
  • 116
1
vote
0 answers

MySQL C API - Reusing connection just after mysql_store_result() or mysql_stmt_store_result() is called

For a "Select" sql, is it safe to reuse the connection for calling the my_xxxx_store() API (to cache all the result in client) multiple times, before we copy all rows by calling my_fetch_xxx() API, from the result sets that cached by calling…
riderchap
  • 667
  • 2
  • 11
  • 19
1
vote
1 answer

"version libmysqlclient_18 not defined in file libmysqlclient.so.18" when loading mysqli extension

I recently switched from mysql 5.5 to mariadb 5.5, however it now seems the php extension for mysqli will not load. I get the following error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' -…
Jeff Long
  • 13
  • 1
  • 3
1
vote
0 answers

Consistent Error 2005 when connecting with C API Libmysql

First, I would like to say I've been lurking this site for years now, and I appreciate all that you've done to help me with C\C++. The real issue I'm having, is I have made a program in windows that parses a yaml file, then queries a SQL database…
1
vote
3 answers

Is MySQL C++ Connector is slower than MySQL C API?

I'm developing a C++ application which needs to connect to MySQL server for some information but my app doesn't run queries frequently. So As C++ connector uses C API behind the scenes... I got this doubt.I'm in dilemma whether to go with C API or…
Sreekar
  • 995
  • 1
  • 10
  • 22
1
vote
3 answers

C SQL Query building made easy

Building a SQL in c is painful work. It takes a lot of time to build such thing. I am new to glib. It helps on string manipulation. But I dont find any to shorten query building code. See a sample here. GString *acc_protocol =…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
1
vote
1 answer

building mysql client library with ssl support

I am trying to build mysql-5.0.33 client library with SSL support. For which I am using ./configure --prefix= --exec-prefix= --with-openssl= --without-server` to configure and then make and make…
Rituparna Kashyap
  • 1,497
  • 13
  • 19
1
vote
1 answer

Python libmysqlclient segfault (MySQLdb)

I am writing an SQL wrapper over MySQLdb. Sometime during execution I am getting the following error in DMSG and the process crushes: python[xxx]: segfault at c8 ip 00007fa1add6b882 sp 00007fa1abb77c60 error 4 in…
user1144031
  • 627
  • 2
  • 6
  • 16
0
votes
1 answer

how do I solve libmysqlclient_r.so symbol referencing linking errors?

following is the make linking output. it shows Symbol referencing errors, even though I have provided path for libmysqlclient_r.so If I link it to libmysqlclient.so then it works fine. But as my program uses multithreading, I want to link…
user1145280
  • 371
  • 1
  • 2
  • 10
0
votes
3 answers

libmysql mysql_real_connect fails with localhost but works with local IP address

I am using the libmysql C API, the mysql_real_connect call only works if I use the real IP address of the host - other than localhost. If I use localhost as host I get the following error: ERROR 2003 (HY000): Can't connect to MySQL server on…
Gabor Forgacs
  • 495
  • 1
  • 7
  • 16
0
votes
1 answer

Connecting to mySQL DB over loaded libmysql.dll

I'm loading a libmysql.dll and want to connect to a db. When calling the mysql_real_connect i get a buffer overflow error. Why? Code: #include #include #include #include #include #include…
haemse
  • 3,971
  • 5
  • 28
  • 40
0
votes
1 answer

How to process result set after a "SELECT *" Mysql Prepared Statement query using the C api?

On the documentation page for https://dev.mysql.com/doc/c-api/8.0/en/mysql-stmt-fetch.html. In the code sample, it mentions that separate outbound parameters have to be declared in order to have access to the columns listed in the SQL query. Is it…
Dan
  • 2,209
  • 3
  • 23
  • 44
0
votes
1 answer

How to install libmysql under Cygwin?

I am trying to build db-mysql extension for NodeJS under Cygwin. The problem is, that it requires libmysql development libraries and include files. I have no idea how to install (and where to get) this stuff to work with Cygwin. Under Ubuntu i would…
Marian Galik
  • 876
  • 8
  • 21
0
votes
1 answer

MySQL/MariaDB - Repeatedly Calling Prepared Statement using C API Performance Degradation

I have a somewhat complicated SQL command that uses a dozen or so common table expressions and window functions that I need to call repeatedly. As such, I'm trying to use a prepared statement. It has 10 input bindings, and 6 output bindings. It…
0
votes
0 answers

How to use threads with libev

I'm making a webcrawler and want to spawn a number of threads each with its own event loop to monitor network activity. Here is my code so far: static void my_cb(EV_P_ struct ev_io *w, int revents) { GlobalInfo *g = (GlobalInfo *)w->data; i =…
Yaakov Roth
  • 101
  • 1