I shall not tell what happened. it need not be the MySQL server. Could be a trivial harware issue (cable, router, switch , transmitter) as well.
If you are in control of the server you can enable the 'general log' by inserting something like
log = mylog.log
in the [mysqld] section of the my.ini/my.cnf file and you can see how often it reconnects.