While using MySQL, how can I setup the max connection time and max execution time?
I’ve tried setting the “timeout” attribute of the “db” component in the config file (main.php) but it failed. It seems that I can only set the “mysqlnd.net_read_timeout” in the php.ini file.
Yii provides DB abstraction layer meaning, if you change your DBMS from MySQL to Postgree or MSSQL, your queries will work, AR classes will work, and you should not get any errors.