Eisserver mysql
From Mulle development
First, install MySQL development files:
sudo apt-get install libmysqlclient15-dev
The necessary header and library files should now be available on your system. To compile a file with MySQL support, add the following to the compiler:
gcc -o sqltest `mysql_config --cflags` `mysql_config --libs` sqltest.c
The sqltest.c looks like this:
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "mysql.h"
int main(int argc, char *argv[]) {
MYSQL *mysql;
MYSQL_RES *results;
MYSQL_ROW record;
return 0;
}
