Detect Mysql Version
Posted: 19.01.2009, 15:51
Hi to all...
I've developed several internal apps for a company, using Zeos Lib (a big thanks to the devteam 4 making this possible). The company is using mysql4.0 server and the only way it hasn't upgraded yet is due to the other software limitations. Now that the rest of the software got updated and can connect to mysql5, the company decided to begin the transition to mysql5.
But here is my problem. The transition will last about a month, so that about 60 servers will get upgraded from mysql4 to mysql5.
The apps i created can handle the transition if i recompile the apps using either mysql-4.0 as protocol or mysql-5.0 . But there is a issue how the app could decide which protocol to use. (this should not and can ot be done by the user).
It crossed my mind about using a tcp connection to the server and read the handshake message but i am open to suggestions!
I have about 2 weeks to implement this on 10 apps so please understand me if i sound i little bit of desperate ...
I've developed several internal apps for a company, using Zeos Lib (a big thanks to the devteam 4 making this possible). The company is using mysql4.0 server and the only way it hasn't upgraded yet is due to the other software limitations. Now that the rest of the software got updated and can connect to mysql5, the company decided to begin the transition to mysql5.
But here is my problem. The transition will last about a month, so that about 60 servers will get upgraded from mysql4 to mysql5.
The apps i created can handle the transition if i recompile the apps using either mysql-4.0 as protocol or mysql-5.0 . But there is a issue how the app could decide which protocol to use. (this should not and can ot be done by the user).
It crossed my mind about using a tcp connection to the server and read the handshake message but i am open to suggestions!
I have about 2 weeks to implement this on 10 apps so please understand me if i sound i little bit of desperate ...