一、linux下查看mysql服务的两种方式:

方式一:

[root@localhost bin]ps -ef|grep mysql
Linux和windows 平台下启动和关闭mysql服务

 



 

方式二:

[root@localhost bin]netstat -nlp

 

二、linux下启动mysql服务的两种方式:

命令行方式:

[root@localhost bin]cd /usr/bin
[root@localhost bin]./mysqld_safe &

 

服务方式:

[root@localhost ~]service mysql start //启动服务

如果服务在启动状态,直接重启服务用以下命令:
[root@localhost ~]service mysql restart

三、linux下关闭mysql服务的两种方式:

命令行方式:

[root@localhost ~]mysqladmin -u root shutdown

 

服务方式:

[root@localhost ~]service mysql stop

 

 

1.Windows下

  • 启动服务
    • mysqld --console  
    • 或  net start mysql  
  • 关闭服务
    • mysqladmin -uroot shudown  
    • 或  net stop mysql  
 
 

相关文章:

  • 2021-10-14
  • 2021-12-18
  • 2021-11-30
  • 2021-12-01
  • 2021-08-27
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
  • 2021-08-15
  • 2021-12-18
  • 2021-12-18
相关资源
相似解决方案