如何在windows 10上检查postgreSQL的用户名
我知道我的密码,但我不记得我的用户名。我试过“博士后”,但没用。如何检查它?关闭数据库并以单用户模式启动:如何在windows 10上检查postgreSQL的用户名,postgresql,Postgresql,我知道我的密码,但我不记得我的用户名。我试过“博士后”,但没用。如何检查它?关闭数据库并以单用户模式启动: “C:\Program Files\PostgreSQL\12\bin\postgres.exe”--single-D“C:\Program Files\PostgreSQL\12\data”postgres 然后查询用户: SELECT usename FROM pg_authid WHERE rolcanlogin;
“C:\Program Files\PostgreSQL\12\bin\postgres.exe”--single-D“C:\Program Files\PostgreSQL\12\data”postgres
然后查询用户:
SELECT usename FROM pg_authid WHERE rolcanlogin;