safer way to restart mysql

and some single-quoting :P