Документ взят из кэша поисковой машины. Адрес оригинального документа : http://old.hcs.cmc.msu.ru/php/function.mysql-change-user.html
Дата изменения: Sun Feb 3 22:47:21 2002
Дата индексирования: Mon Oct 1 22:54:15 2012
Кодировка:
mysql_change_user

mysql_change_user

(3.0.13 - 3.0.18 only)

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 default or current database after the user has been changed. If the new user and password authorization fails, the current connected user stays active.

Note: This function was introduced in PHP 3.0.13 and requires MySQL 3.23.3 or higher.