当前位置:Gxlcms > 数据库问题 > shell脚本进行数据库操作

shell脚本进行数据库操作

时间:2021-07-01 10:21:17 帮助过:28人阅读

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 数据库操作

人气教程排行