Allow setting the init command on the connection.

When reconnect is enabled, it is handled within libmysqlclient.

In such case, if a connection sets any session variables after connecting,
they will be lost after the reconnection.