What is new name of load_defaults() function in mysql c api?
I tried the following code from this link (http://www.kitebird.com/mysql-book/ch06-2ed.pdf). I am using MySQL 5.7 and Visual Studio 2013 on Windows 7/64bit. The load_defaults() function no more exists. There is no documentation on it. What is the new name of load_defaults() function?
#include <my_global.h>
#include <sql.h>
#include <my_sys.h> //#include <my_getopt.h>
static const char *client_groups[] = { "show_argv","client", NULL };
int main(int argc, char *argv[]) { int i;
printf("Original argument vector:\n"); for (i = 0; i < argc; i++) printf("arg %d: %s\n", i, argv[i]);
my_init(); my_load_defaults("my", client_groups, &argc, &argv);
printf("Modified argument vector:\n"); for (i = 0; i < argc; i++) printf("arg %d: %s\n", i, argv[i]); exit(0); }
load_defaultswas never meant to be used outside of the client lib. It had therefore been removed from the library exports. I assumed this would still be the case, but then I found: https://bugs.mysql.com/bug.php?id=25535, which seems to indicate this function has been renamed and re-exported. Didn't check this myself, though .