The local state is preserved when you stop a process, but the state of remote resources obviously cannot be maintained. If the remote MySQL instance times out the connection you need to reconnect.
This is a collaboratively edited question and answer site for system administrators and desktop support professionals. It's 100% free, no registration required.
Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.