Step1: 切换用户为postgres sudo su postgres Step2: 用postgres连接postgreSQL psql -U postgres Step3: 修改postgres密码 alter user postgres with password 'new password'; 现在postgres用户就拥有了新密码
8.X版本: #查看密码策略 show variables like '%validate_password.policy%'; show variables like '%validate_password.length%'; #修改密码策略 set global validate_password.policy=0; set global validate_password.length=1; 57版本: #查看密码策略 show variables like '%validate_pass
win10的可以,win7的好像不行 @echo off & setlocal EnableDelayedExpansion title 查看所有wifi和密码 for /f "usebackq delims=: tokens=1-2" %%a in (`netsh wlan show profiles ^| findstr "用户配置文件"`) do ( for /f "usebackq delims=: tokens=1-2" %%m
[postgres@pg01 ~]$ psql -Upostgres -dpostgres postgres=# alter user postgres with password 'postgres'; ALTER ROLE 登录测试: [postgres@pg02 ~]$ psql -h 192.168.12.14 -p 5432 -U postgres -d postgres Password for user postgres:(输入刚刚修改的密码postgres) psql.bin (