auto reconnect only for mysql
slice