mysql服务操作shell脚本
来源:互联网 发布:unity3d密室逃脱代码 编辑:程序博客网 时间:2024/04/29 08:47
#!/bin/sh. /etc/init.d/functionspath=/application/mysql/binuser=rootpass=123456function usage(){ echo "$0 {statrt|stop|restart}" echo 1}[ $# -ne 1 ] && usagefunction start_mysql(){ $path/mysqld_safe --user=mysql >/dev/null 2>&1 & if [ $? -eq 0 ] then action "start mysql" /bin/true else action "start mysql" /bin/false fi}function stop_mysql(){ mysqladmin -u $user -p$pass shutdown >/dev/null 2>&1 if [ $? -eq 0 ] then action "stop mysql" /bin/true else action "stop mysql" /bin/false fi}if [ "$1" == "start" ] then start_mysqlelif [ "$1" == "stop" ] then stop_mysqlelif [ "$1" == "restart" ] then stop_mysql start_mysqlelse useagefi
0 0
- Shell脚本操作MySQL服务
- mysql服务操作shell脚本
- shell脚本操作mysql
- shell脚本操作mysql数据库
- linux shell脚本操作mysql
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- SHELL脚本操作mysql数据库
- 使用shell脚本进行mysql操作
- 用shell脚本操作mysql数据库
- 通过shell脚本操作mysql数据库
- 通过shell脚本操作mysql数据库
- 利用shell脚本操作mysql数据库
- 使用shell脚本操作mysql数据库
- Android 手势识别(单击 双击 抬起 短按 长按 滚动 滑动)
- Centos实践之路
- IOS开发之判断IPHONE连接的网络(WIFI,2G,3G,4G)是IPV4还是IPV6网络
- 1.20小计
- libjpeg库编码图片为jpg(ffmpeg解码视频存储图片:RGB格式位图压缩为jpg格式图片)
- mysql服务操作shell脚本
- 先来设置CentOS Linux release 7.2.1511 (Core)的ip,firewall等
- RPC、ORB、MOM三类中间件比较
- win7下搭建Nginx简单图片服务器
- HDU 2085 核反应堆
- Java中有关List的学习笔记
- 文件夹的创建,删除,重命名,怎么同时创建多个文件夹
- 在Centos 7上使用Devstack快速安装Openstack
- 用户手势检测-GestureDetector使用详解