mysql needs to reconnect after recreate. Thanks @mperham