pg_change_password
Change a PostgreSQL user's password
説明
bool pg_change_password(PgSql\Connection $connection, string $user, string $password)
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.
戻り値
成功した場合に true を、失敗した場合に false を返します。