MySQL Driver support for client flags - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: MySQL Driver support for client flags (/showthread.php?tid=3445) |
MySQL Driver support for client flags - El Forum - 10-02-2007 [eluser]slackero[/eluser] I have a project where MySQL server is different from webserver. So it's difficult to use MySQL LOAD DATA LOCAL INFILE because client side does not support local_infile by default. Here mysql_connect() 5th and mysql_pconnect() 4th parameter $client_flags are necessary. CodeIgniter does not support this by default. So I have it enhanced. Enhanced in mysql_driver.php Code: /** Add additional default value to DB_driver.php Code: $defaults = array( And use setting in config/database.php Code: $db['default']['client_flags'] = 128; Oliver |