Forum Discussion
myocella
Nimbostratus
Jan 22, 2009iRule to inspect MySQL statements
Greeting,
I would like to create iRule to apply a VS to redirect MySQL traffic
to a pool based on the SQL statement. Here is my iRule:
---------------8<-----------...
ryanc_76025
Altocumulus
Jan 22, 2009This, unfortunately, isn't going to work so easily...I really wish it did, but it won't.
The main problem is very close to what hoolio guessed at, the actual SELECT statement in MySQL comes only after the initial handshake, server welcome, client authentication, and subsequent information from the server about it's capabilities.
At the bottom is a link to the MySQL Server/Client Protocol wiki page. You are definitely headed down the right road, but you've got to convince the client that it is talking to a real MySQL server.
http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects