Hello, I am coding a windows application with MySQL 4.1 C API but I cannot get the embedded server to run. With a remote server the application works just fine, so starting the embedded server is the only problem.
<code> getcwd(CWD, MAX_PATH); sprintf(BaseDir, "--basedir=%s\\", CWD); sprintf(DataDir, "--datadir=%s\\Data\\", CWD); sprintf(MyIni, "--defaults-file=%s\\my.ini", CWD); static char *server_args[] = { "Avainhallinta", /* this string is not used */ MyIni, BaseDir, DataDir }; static char *server_groups[] = { "client", "mysqld", "Avainhallinta_SERVER", (char *)NULL }; if (mysql_server_init(sizeof(server_args) / sizeof(char *), server_args, server_groups)) { MessageBox(NULL, "Initiliazing Database Server Failed!", NULL, MB_OK); return -1; } </code> I have tried to start the server with various settings and even mysql_server_init(NULL, NULL, NULL) fails. With some settings I receive different operating system erros such as "7 (ERROR_ARENA_TRASHED); The storage control blocks were destroyed.". Any ideas what I could do to solve this? Thanks, Niklas Lampén -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]