linux下mysql的启动与停止
生活随笔
收集整理的這篇文章主要介紹了
linux下mysql的启动与停止
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、啟動
MySQL安裝完成后啟動文件mysql在/etc/init.d目錄下,
在需要啟動時運行下面命令即可。
[root@test1 init.d]# /etc/init.d/mysql start
2、停止 /usr/bin/mysqladmin -u root -p shutdown
3、自動啟動
1)察看mysql是否在自動啟動列表中
[root@test1 local]# /sbin/chkconfig –list
2)把MySQL添加到你系統(tǒng)的啟動服務組里面去
[root@test1 local]# /sbin/chkconfig – add mysql
3)把MySQL從啟動服務組里面刪除。
[root@test1 local]# /sbin/chkconfig – del mysql
轉(zhuǎn)載于:https://www.cnblogs.com/arix04/archive/2009/07/14/1523092.html
總結(jié)
以上是生活随笔為你收集整理的linux下mysql的启动与停止的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MCITP第十二课——642课件2新知识
- 下一篇: Wordpress 修改 mysql 插