I am using ‘Load data local infile’ MySql command.
Unfortunately my provider does not allow to use this command directly.
Instead he suggests to use first the following mysql command for the database connection:
mysql_connect($server, $user, $pass, false, 128); #128 is a constant CLIENT_LOCAL_FILES.
I tried this command and it works. But I would prefer to use Yii tools.
I have been trying to use setAttribute function of the class CDbconnection to establish connection
with an atrribute PDO::MYSQL_ATTR_LOCAL_INFILE set to 1. Unfortunately it did not work.
Can anybody advise me an Yii analogue of the above command mysql_connect($server, $user, $pass, false, 128) to set up connection allowing ‘Load data local infile’ MySql command?