to restart mysql on Debian / Ubuntu:
/etc/init.d/mysql restart
To restart mysql on Redhat Fedora
/etc/init.d/mysqld restart