Fixing problem when connecting to mysql and no init commands were passed