I have a problem with restarting mysql server. It used to restart when I run it with mysqld restart, but I don't know what happened now, it just won't restart giving me an error: you have an error in your sql syntax. I tried different restart methods:
mysql restart
mysqld restart
sudo restart mysql
service mysqld restart
/etc/init.d/mysql restart
and getting the same error. How do I restart it?