Libmysql is a client library for connecting C written application to MySql.
Questions tagged [libmysql]
113 questions
0
votes
3 answers
PHP mysql query with temp table not working
I'm making a small email app via php, javascript and have it working for the most part. Where I'm getting lost is when trying to set up the query to get the emails that was deleted and sent to trash. The query I had written seemed to work fine when…

Drfrink
- 404
- 1
- 9
- 25
0
votes
1 answer
Does "mysql_set_character_set" transfer bytes to MySQL server?
Quoth MySQL docs - mysql_set_character_set():
This function works like the SET NAMES statement, but also sets the value of mysql->charset, and thus affects the character set used by mysql_real_escape_string()
When it says "works like the SET NAMES…

Pacerier
- 86,231
- 106
- 366
- 634
0
votes
1 answer
"Invalid read of size 1" with mysql_free_result
I'm trying to get a value from a database and store it in a global variable like so:
mysql_query(con, query);
MYSQL_RES *result = mysql_store_result(con);
if ((row = mysql_fetch_row(result)))
{
global_variable = row[1];
} …

Zaxter
- 2,939
- 3
- 31
- 48
0
votes
0 answers
c libmysql: free(): invalid next size (normal)
When I comment the indicated line, I don't have any problem. But when I dont I get the "free(): invalid next size (normal)" error.
Any help would be appreciated.
Here's the code- Main.c:
MYSQL_RES *result = run_query("SELECT * FROM Zones");
int…

Zaxter
- 2,939
- 3
- 31
- 48
0
votes
1 answer
Linux C: segfault error 4 in libmysqlclient.so.18.0.0
I'm trying to implement a multithreaded tcp server with the following code.
int main(int argc , char *argv[])
{
int socket_desc , client_sock , c , *new_sock;
struct sockaddr_in server , client;
//Create socket
socket_desc =…

Zaxter
- 2,939
- 3
- 31
- 48
0
votes
2 answers
Problems upgrading MySQL application from Delphi 2006 to 2010
I upgraded my Delphi to 2010 version and I tried to open and run application written in Delphi 2006. The app is using mysql by dbexpress with libmysql.dll and a second driver found somewhere on the Internet.
I can't run it on 2010. I'm always…

WombaT
- 790
- 1
- 13
- 27
0
votes
2 answers
libmysqlcppconn.so.5: cannot open shared object file: No such file or directory
I built a simple c++ application using Netbeans on ubuntu.
in the application I use mysql_connection and curl.
the application is working fine on my local system (Ubuntu)
when I tried to run the application on my Centos server I get this message:
…

medo ampir
- 1,850
- 7
- 33
- 57
0
votes
2 answers
Delphi XE6 on Windows 7 64bit, FireDAC cannot find libmysql.dll
I have a little different question from Delphi XE5 FireDAC Error: Cannot load vendor library libmysql.dll or libmysqld.dll
I'm evaluating Delphi XE6 on Windows 7 64bit, I wish to use FireDAC to connect to MySQL database.
I have downloaded…

Artisan
- 4,042
- 13
- 37
- 61
0
votes
3 answers
Perl MYSQL Error : libmysql.dll
Have you ever met this error when code Perl to access db MYSQL :
The procedure entry point mysql_get_parameters could not be located in libmysql_.dll ?
I already copied libmysql.dll from D:\xampp\mysql\lib\ to many places and renamed it to…

user3172252
- 1
- 1
- 2
0
votes
1 answer
Linking to libiconv
I've created a clean build of libmariadbclient and integrated it into my project. Whenever I try to build said project I fail with an error:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_mariadb_convert_string in…

ruipacheco
- 15,025
- 19
- 82
- 138
0
votes
1 answer
Why does this CMake project not set the appropriate MSVC runtime?
I'm trying to understand why the libmysql CMake project configured with /MD and /MDd flags does not generate the appropriate Visual Studio 10 project files. The appropriate CMAKE_ macros have been configured, as shown:
Yet the generated projects…

jwalk
- 1,120
- 11
- 27
0
votes
1 answer
MySQL multithreading app and segfault when reconnect to MySQL into worker thread
I have multithreading application client to MySQL and I use MySQL C-client (libmysqlclient_r). I have db connections pool, where I open connection before create thread workers (pthread_create).
The each worker gets only single connection from…

user1514692
- 60
- 1
- 8
0
votes
1 answer
MySQL Client Library version compatibility with Server?
We are wrting a C++ application which links to MySQL shared Library dynamically to communicate with Server. My question is for normal queries and stuff (which is supported by almost every library) , Is it necessary to enforce the Server and Library…

Sreekar
- 995
- 1
- 10
- 22
0
votes
1 answer
DbExpress: Using New 5.1 libmysql.dll with older MySQL 5.0 server
I would like to find out from fellow developers if there are any pitfalls in using a recent libmysql.dll with a previous MySQL server. I use Delphi with DbExpress to build database applications.
My main reason is that I have both Delphi 7 and Delphi…

Martin
- 39
- 1
- 5
0
votes
1 answer
OSX Xcode - Packaging dependencies libmysqlclient.18.dylib
This may well have been asked before I just couldn't figure out the right term to search.
I'm writing a client-server application to run on an OSX desktop which will talk to a MySQL server on the local network. It seems long-winded to implement a…

JamesB
- 499
- 8
- 23