The mysqli_change_user() function changes the user of the specified database connection and sets a
new active database, completely resetting the session in the process.
Practical use: This function is used when we want to completely reset the session and change the database within the same script. The advantage is that the function releases all locked tables and closes temporary tables, ensuring a clean working environment. Test it at home like this: