Fix bug at database provider for mysql not using my.cnf before connecting to server.

Mysql database provider is not using setting from my.cnf and using compile
    time defaults. This can cause problems when mysql.sock is in different path
    from the one set during build time (this happens when using mysql cookbook on OpenSUSE)