Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
2013-04-28 18:34
585 查看
系统环境:ubuntu server 12.10 x64(mysql为系统自带)
当我们需要修改MySQL的配置文件my.cnf(windows 下为 my.ini)来进行一些设置的时候,修改完之后我们需要重启MySQL。
my.cnf文件位置为:/ect/mysql/my.cnf
Waring:如果该文件配置错误,MySQL将无法启动。
下面介绍三种方式对MySQL进行启动/停止/重启操作:
启动mysql:
方式一:sudo /etc/init.d/mysql start
方式二:sudo start mysql
方式三:sudo service mysql start
停止mysql:
方式一:sudo /etc/init.d/mysql stop
方式二:sudo stop mysql
方式san:sudo service mysql stop
重启mysql:
方式一:sudo/etc/init.d/mysql restart
方式二:sudo restart mysql
方式三:sudo service mysql restart
当我们需要修改MySQL的配置文件my.cnf(windows 下为 my.ini)来进行一些设置的时候,修改完之后我们需要重启MySQL。
my.cnf文件位置为:/ect/mysql/my.cnf
Waring:如果该文件配置错误,MySQL将无法启动。
下面介绍三种方式对MySQL进行启动/停止/重启操作:
启动mysql:
方式一:sudo /etc/init.d/mysql start
方式二:sudo start mysql
方式三:sudo service mysql start
停止mysql:
方式一:sudo /etc/init.d/mysql stop
方式二:sudo stop mysql
方式san:sudo service mysql stop
重启mysql:
方式一:sudo/etc/init.d/mysql restart
方式二:sudo restart mysql
方式三:sudo service mysql restart
相关文章推荐
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- 详解Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- Ubuntu启动/停止/重启Mysql数据库的方法
- 记录学习的点滴(Ubuntu下启动/停止/重启MySQL数据库)
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’解决方法 + Linux启动/停止/重启Mysql数据库的方法
- Nginx的启动、停止与重启 启动 启动代码格式:nginx安装目录地址 -c nginx配置文件地址 例如: [root@LinuxServer sbin]# /usr/local/nginx
- ubuntu下mysql启动停止重启
- Linux启动/停止/重启Mysql数据库的方法
- ubuntu下mysql安装(server、client、dev),开启、停止和重启,及常见错误
- Ubuntu下启动/重启/停止apache服务器
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库
- Ubuntu下启动停止重启mysql及其他
- 09_Hadoop启动或停止的三种方式及启动脚本
- ubuntu下mysql安装(server、client、dev),开启、停止和重启,及常见错误
- Linux启动/停止/重启Mysql数据库的方法
- ubuntu下mysql安装(server、client、dev),开启、停止和重启,及常见错误