Answer the question
In order to leave comments, you need to log in
FireDac how to set MySQL options before connecting to DB?
Before connecting, you need to set the MYSQL_INIT_COMMAND option
Tried like this:
TMySQLSession *session = (TMySQLSession *)FDConnection1->CliObj;
session->Lib->mysql_options_(session->MySQL, MYSQL_INIT_COMMAND, "call init_session()");
FDConnection1->Connected = true;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question