Welcome Guest, Not a member yet? Register   Sign In
MYSQLI_OPT_LOCAL_INFILE
#1

Is there a way to set this parameter directly in the config/database.php settings or should it be done another way?

Thanks
Reply
#2

(This post was last modified: 04-11-2024, 06:16 PM by kenjis.)

No, you cannot set in config/Database.php.
Reply
#3

You can get MySQLi object.

When CI4 MySQLi connection does not yet connect to MySQL server.
$db     = db_connect();
$mysqli = $db->connect();
d($mysqli);      // mysqli object


When CI4 MySQLi connection has already connected to MySQL server.
$db    = db_connect();
dd($db->mysqli); // mysqli object
Reply




Theme © iAndrew 2016 - Forum software by © MyBB