AloneSword

启动与停止

1、启动
  MySQL安装完成后启动文件mysql在/etc/init.d目录下,在需要启动时运行下面命令即可。  

[root@localhost mysql]#  /etc/init.d/mysql start

2、停止  

[root@localhost mysql] #  /usr/bin/mysqladmin -u root -p shutdown

3、自动启动

  1)察看mysql是否在自动启动列表中  

[root@localhost mysql] # /sbin/chkconfig –list

  2)把MySQL添加到你系统的启动服务组里面去  

[root@localhost mysql] # /sbin/chkconfig – add mysql

  3)把MySQL从启动服务组里面删除。 

[root@localhost mysql] # /sbin/chkconfig – del mysql

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-07-30
  • 2021-06-11
  • 2021-10-05
  • 2022-01-27
  • 2021-10-18
  • 2021-05-02
猜你喜欢
  • 2021-09-26
  • 2021-10-19
  • 2021-04-10
  • 2021-12-06
  • 2021-12-16
  • 2021-04-11
相关资源
相似解决方案