服务器2025年10月12日
Step1: 切换用户为postgres sudo su postgres Step2: 用postgres连接postgreSQL psql -U postgres Step3: 修改postgres密码 alter user postgres with password 'new password'; 现在postgres用户就拥有了新密码 ...
服务器2025年07月13日
1、创建定时任务shell vi /data/db_backup.sh #!/bin/bash cur_time=$(date '+%Y-%m-%d') sevendays_time=$(date -d -3days '+%Y-%m-%d') echo "Starting Backup PostgreSQL ..." rm -rf &q...