mysql set_opt should be called before connecting
Closed this issue · 0 comments
zsxsoft commented
In current version, set_opt
called after connect
so none of these options work. This should be replaced with:
$mysqli = new mysqli();
foreach ($this->config->getOptions() as $option => $value) {
$mysqli->set_opt($option, $value);
}
$mysqli->real_connect(....);