PHP 手冊
上一頁 |  | 下一頁

# mysql_change_user

(PHP 3>= 3.0.13)

mysql_change_user -- Change logged in user of the active connection

## Description

int mysql_change_user ( string user, string password [, string database [, resource link_identifier]])

mysql_change_user() changes the logged in user of the current active connection, or the connection given by the optional link_identifier parameter. If a database is specified, this will be the current database after the user has been changed. If the new user and password authorization fails, the current connected user stays active. 成功回傳`TRUE`失敗回傳`FALSE`。

> 備注: This deprecated function is only available in PHP 3 and requires MySQL 3.23.3 or higher.

上一頁 | 最開頭 | 下一頁
mysql_affected_rows | 上一層 | mysql_client_encoding