Här är ett utdrag från dokumentationen för mysql_server_init():
"The NULL-terminated list of strings in groups selects which groups in the option files will be active. See section 4.1.2 `my.cnf' Option Files. For convenience, groups may be NULL, in which case the [server] and [emedded] groups will be active. "
Så jag tänket det kan vara ok att skicka NULL som argument till mysql_server_init(). Här är min "C:\winnt\my.ini" file:
#This File was made using the WinMySQLAdmin 1.4 Tool #2003-03-25 16:23:20
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
Så jag tänket det kan vara ok att skicka NULL som argument till mysql_server_init().
Har inte heller testat embeddedvarianten, men när jag för en tid sedan testade det vanliga C api'et för mySQL var det helt korrekt att skicka "0" som argument i init för att få ett handtag i retur.
248 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e