php - MySQL Reconnect Attempts In Codeigniter -
php - MySQL Reconnect Attempts In Codeigniter -
some pages on site can take bit of time process , connection mysql closes.
i'm not in position increment timeout variable mysql, i'd hence find way tell codeigniter effort reconnect x amount of times when tries run query before dying.
i've done in non-ci projects running queries through custom query comment which:
checks if connection there if isn't, tries reconnect , stores number of attempts in global variable runs query returns results.what best method of doing in ci?
php mysql codeigniter
Comments
Post a Comment