Linux 命令操作开启、停止、重启Mysql数据库的方法
来源:互联网 发布:淘宝网购物女裤 编辑:程序博客网 时间:2024/05/21 17:01
1、查看mysql版本
方法一:status;
方法二:select version();
2、Mysql启动、停止、重启常用命令
a、启动方式
1、使用 service 启动:
[root@localhost /]# service mysqld start (5.0版本是mysqld)
[root@szxdb etc]# service mysql start (5.5.7版本是mysql)
2、使用 mysqld 脚本启动:
/etc/inint.d/mysqld start
3、使用 safe_mysqld 启动:
safe_mysqld&
b、停止
1、使用 service 启动:
service mysqld stop
2、使用 mysqld 脚本启动:
/etc/inint.d/mysqld stop
3、mysqladmin shutdown
c、重启
1、使用 service 启动:
service mysqld restart
service mysql restart (5.5.7版本命令)
2、使用 mysqld 脚本启动:
/etc/init.d/mysqld restart
0 0
- Linux 命令操作开启、停止、重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Linux启动/停止/重启Mysql数据库的方法
- Xcode8 及 iOS 10 的适配
- vnc model startup script
- FastJSON序列化的使用
- linux服务器测试工具
- python矩阵转换为一维数组
- Linux 命令操作开启、停止、重启Mysql数据库的方法
- Tcp服务端判断客户端是否断开连接
- SQL Server JDBC连接中的问题
- 直接将ppt转换成word格式的方法
- Struts2的整体流程
- MATLAB绘图与图形处理
- 表单提交文件无法获取的解决办法
- C++多线程框架-----Mutex互斥和Sem信号量
- iOS 10 创建iMessage App