MySQL is an open source database software which is used for storing data. Some time we need to run MySQL Server on safe mode. Please follow the below commands one by one to run MySQL server on safe mode.
1) First of all you have to stop MySQL Server.
sudo /etc/init.d/mysql stop
2) Now you have to kill all MySQL id by following command.
3) Now run the following command to start MySQL server in safe mode using the --skip-grant-tables option. This command will start MySQL in safe mode.
4) Now, restart your MySQL
sudo /etc/init.d/mysql start
Hope this helps you, in case you have any questions please feel free to ask in comments.