qq_37535244
2017-08-28 03:15
采纳率: 100%
浏览 4.0k

shell脚本操作数据库报错 mysql: command not found代码如下

#!/bin/sh
HOSTNAME="localhost"
PORT="3306"
USERNAME="*"
PASSWORD="*"
DBNAME="*"
TABLENAME="*"
delete_sql="DELETE FROM * WHERE id = 'fc3859f5'"
mysql -h ${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} ${DBNAME} -e "${delete_sql}"

2条回答 默认 最新

相关推荐 更多相似问题