在shell脚本里连接数据库
psql -h host -U username -d database -W password 这么写没有错吧?
为什么psql每次都要我手动输入密码吗?有没有办法解决这个问题,如果有的话应该怎么写,求help~