![]() |
appending MySQL client flags to connections - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: appending MySQL client flags to connections (/showthread.php?tid=16670) |
appending MySQL client flags to connections - El Forum - 03-13-2009 [eluser]sjmiller85[/eluser] I'm looking to append a forth parameter to the mysql connection for client flags (specifically MYSQL_CLIENT_CONNECT). I'm having a bugger of a time trying to find where the actual connection is being made in the DB_Driver file, does anyone know where the db connection is made, or if CI has built-in functionality for accepting client flags in the connections? appending MySQL client flags to connections - El Forum - 03-13-2009 [eluser]pistolPete[/eluser] Code: function db_connect() Location: ./system/database/drivers/mysql/mysql_driver.php In order to change that method to accept the flags you have to extend the mysql driver. Have a look at the wiki: http://codeigniter.com/wiki/Extending_Database_Drivers/ appending MySQL client flags to connections - El Forum - 03-13-2009 [eluser]sjmiller85[/eluser] Awesome, thank you for the help! |