Change the user of the specified database connection:
The mysqli_change_user() function changes the user of the specified database connection, and sets the current database.
| Parameter | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use |
| username | Required. Specifies the MySQL username |
| password | Required. Specifies the MySQL password |
| dbname | Required. Specifies the database to change to |
| Return Value: | TRUE on success. FALSE on failure |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference
Your message has been sent to W3Schools.