Oracle 5.0 Reference Manual page 2373

Table of Contents

Advertisement

mysqli_commit
mysqli_rollback
20.7.3.9.3. mysqli::change_user,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli::change_user
mysqli_change_user
Changes the user of the specified database connection
Description
Object oriented style
bool mysqli::change_user(
string user,
string password,
string database);
Procedural style
bool mysqli_change_user(
mysqli link,
string user,
string password,
string database);
Changes the user of the specified database connection and sets the current database.
In order to successfully change users a valid
and that user must have sufficient permissions to access the desired database. If for any reason
authorization fails, the current user authentication will remain.
Parameters
link
user
password
database
Return Values
Returns
TRUE
Notes
MySQL Improved Extension (Mysqli)
mysqli_change_user
Procedural style only: A link identifier returned by
mysqli_connect
The MySQL user name.
The MySQL password.
The database to change to.
If desired, the
the user and not selecting a database. To select a database in this
case use the
on success or
on failure.
FALSE
Note
Using this command will always cause the current database connection to
behave as if was a completely new database connection, regardless of if the
operation was completed successfully. This reset includes performing a rollback
on any active transactions, closing all temporary tables, and unlocking all locked
tables.
and
username
password
or
mysqli_init
value may be passed resulting in only changing
NULL
mysqli_select_db
2353
parameters must be provided
function.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents