What are the commands for starting and shutting down mysql services in Linux
This article mainly introduces "what are the commands for starting and shutting down mysql services in Linux". In daily operations, I believe many people have doubts about what commands to start and shut down mysql services in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "what are the commands for starting and shutting down mysql services in Linux?" Next, please follow the editor to study!
1. There are two ways to view mysql services under linux: method 1:
[root@localhost bin] ps-ef | method 2 of grep mysql1:
[root@localhost bin] two ways to start mysql service under netstat-NLP1 II and linux: command line mode:
[root@localhost bin] cd / usr/bin [root@localhost bin]. / mysqld_safe & 12 Service method:
[root@localhost ~] service mysql start if the service is started, restart the service directly with the following command: [root@localhost ~] service mysql restart123 3. There are two ways to shut down the mysql service under linux: command line:
[root@localhost ~] mysqladmin-u root shutdown1 service method:
[root@localhost ~] service mysql stop at this point, the study on "what are the commands for starting and shutting down mysql services in Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!