码迷,mamicode.com
首页 > 数据库 > 详细

mysql

时间:2015-12-20 10:25:27      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:

1,mysql 服务启动:

/etc/init.d/mysqld start

2,mysql 停止服务:

 mysqladmin -r root -p123456 shutdown

3,查看mysql启动状态:

/etc/init.d/mysqld status

 

4,自动启动
  1)察看mysql是否在自动启动列表中
  [root@test1 local]# /sbin/chkconfig –list
  2)把MySQL添加到你系统的启动服务组里面去
  [root@test1 local]# /sbin/chkconfig – add mysql
  3)把MySQL从启动服务组里面删除。
  [root@test1 local]# /sbin/chkconfig – del mysql

mysql

标签:

原文地址:http://www.cnblogs.com/8899man/p/5060274.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!