pg_change_password
(PHP 8 >= 8.4.0)
pg_change_password — Change a PostgreSQL user's password
说明
function pg_change_password(PgSql\Connection
$connection, string $user, #[\SensitiveParameter] string $password): bool
pg_change_password() changes the password of a
PostgreSQL user. This function uses the
PQchangePassword libpq function which handles
password encryption automatically based on the server's settings.
参数
connection
PgSql\Connection 实例。
user
The name of the PostgreSQL user whose password to change.
password
The new password.
参见
- pg_connect() - 打开 PostgreSQL 连接
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
