diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-02-10 13:51:09 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-02-10 13:51:09 +0100 |
commit | c848b9af57da305109c32788a0d98d5305d74048 (patch) | |
tree | 86f808279c515d4d20aa72054b0874be816fecb3 /mysql-embedded-check.c | |
parent | 4192184e43dadb39b71af29126825312b539ae26 (diff) |
move mysql 5.5 stuff to new dir
Diffstat (limited to 'mysql-embedded-check.c')
-rw-r--r-- | mysql-embedded-check.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-embedded-check.c b/mysql-embedded-check.c new file mode 100644 index 0000000..8bf8ca5 --- /dev/null +++ b/mysql-embedded-check.c @@ -0,0 +1,26 @@ +/* simple test program to see if we can link the embedded server library */ + +#include <stdio.h> +#include <stdlib.h> +#include <stdarg.h> + +#include "mysql.h" + +MYSQL *mysql; + +static char *server_options[] = \ + { "mysql_test", "--defaults-file=my.cnf", NULL }; +int num_elements = (sizeof(server_options) / sizeof(char *)) - 1; + +static char *server_groups[] = { "libmysqld_server", + "libmysqld_client", NULL }; + +int main(int argc, char **argv) +{ + mysql_library_init(num_elements, server_options, server_groups); + mysql = mysql_init(NULL); + mysql_close(mysql); + mysql_library_end(); + + return 0; +} |