Restart MySQL server
Hi,
Below are 3 simple Linux commands to start, stop, and restart MySQL server:
To start MySQL server:
/etc/init.d/mysql start
To stop MySQL server:
/etc/init.d/mysql stop
To restart MySQL server:
/etc/init.d/mysql restart
Please note that you have to log in as usual, and remember to su (switch user) to root. And also note that the environment used to use this command is Linux Ubuntu. For RedHat Linux, Fedora core, and CentOS the commands used are slightly different.
- Forums:
