I'd like to know is there a way that I can run a cron-job to reset the mysql server and then restart the server?

If so, what would be the command?