I am trying to use the following function from my .NET application…
int mysql_library_init(int argc, char **argv, char **groups)
Where the argv and groups params are passed the following…
static char *server_args[] = {
"this_program", /* this string is not used */
"--datadir=.",
"--key_buffer_size=32M"
};
static char *server_groups[] = {
"embedded",
"server",
"this_program_SERVER",
(char *)NULL
};
How can I do this within C#?
Just declare the arguments as string[].
Pinvoking the MySql native interface is painful and unnecessary. Use its .NET data provider.