View Single Post
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-05-2013 , 10:36   Re: [SQL] MySQL Connector :: Remote Database (+Natives)
Reply With Quote #21

Quote:
Originally Posted by K.K.Lv View Post
another problem , I think you have to consider the handler of the connection, I think most of coders knowing the error code of MySql, like "CR_SERVER_GONE_ERROR(error No. is 2006)" and the "CR_SERVER_LOST(error No. is 2013)", so I suggest you that check whether the handler of the connection is valid or not before you execute the query
Best way is using mysql_pconnect().

I like how oracle drivers works with tns names.
You have a connection pool for a unique name (can have more than 1 different pool). Then you can tell your app to use that pool for each operation. The drivers itself handle reconnection (can be achieved with mysql_pconnect).
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito