[java]
#/bin/sh
#检测mysql server是否正常提供服务
mysqladmin -u sky -ppwd -h localhost ping
#获取mysql当前的几个状态值
mysqladmin -u sky -ppwd -h localhost status
#获取数据库当前的连接信息
mysqladmin -u sky -ppwd -h localhost processlist
#mysql dump数据导出
mysqldump -uroot -T/tmp/mysqldump test test_outfile --fields-enclosed-by=\" --fields-terminated-by=,
#mysql数据导入
mysqlimport --user=name --password=pwd test --fields-enclosed-by=\" --fields-terminated-by=, /tmp/test_outfile.txt
LOAD DATA INFILE '/tmp/test_outfile.txt' INTO TABLE test_outfile FIELDS TERMINATED BY '"' ENCLOSED BY ',';
#mysql进程监控
ps -ef (北联网教程,专业提供视频软件下载)
……