输入banner图图片脚本导航/分类

shell脚本进行数据库操作

mysql


 mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "sql语句"
 
 -hlocalhost -uroot -proot customer -e "select * from customer" > 1.txt


参考文章:

http://www.2cto.com/database/201410/343557.html



shell编程—— EOF  

 http://blog.163.com/njut_wangjian/blog/static/1657964252013112152418345/

 

本文出自 “一无所有-天行者” 博客,请务必保留此出处http://tianxingzhe.blog.51cto.com/3390077/1680086

shell脚本进行数据库操作

标签:shell mysql 数据库操作