MysqlndUhConnection::changeUser Changes the user of the specified mysqlnd database connection &reftitle.description; public boolMysqlndUhConnection::changeUser mysqlnd_connectionconnection stringuser stringpassword stringdatabase boolsilent intpasswd_len Changes the user of the specified mysqlnd database connection &reftitle.parameters; connection Mysqlnd connection handle. Do not modify! user The MySQL user name. password The MySQL password. database The MySQL database to change to. silent Controls if mysqlnd is allowed to emit errors or not. passwd_len Length of the MySQL password. &reftitle.returnvalues; Returns &true; on success. Otherwise, returns &false; &reftitle.examples; <function>MysqlndUhConnection::changeUser</function> example change_user("root", "bar", "test")); ?> ]]> &example.outputs; NULL, 1 => 'root', 2 => 'bar', 3 => 'test', 4 => false, 5 => 3, )) proxy::changeUser returns false bool(false) ]]> &reftitle.seealso; mysqlnd_uh_set_connection_proxy mysqli_change_user