Closed zsxsoft closed 4 years ago
https://github.com/swoole/library/blob/0f250bc7e7451992e0de103f07b284996feba07f/src/core/Database/MysqliPool.php
In current version, set_opt called after connect so none of these options work. This should be replaced with:
set_opt
connect
$mysqli = new mysqli(); foreach ($this->config->getOptions() as $option => $value) { $mysqli->set_opt($option, $value); } $mysqli->real_connect(....);
https://github.com/swoole/library/blob/0f250bc7e7451992e0de103f07b284996feba07f/src/core/Database/MysqliPool.php
In current version,
set_opt
called afterconnect
so none of these options work. This should be replaced with: