If you have not only the mysql-client tool, but also an additional application layer, there is more jedi style :) You can create a simple decorator for your connector class that will fulfill some requests when creating an instance of the instance (in the constructor) / connect.
Hope this helps
source share