← All docs

mysqli_change_user()

Changes the user of the database connection.

mysqli_change_user()

function mysqli_change_user(mixed $mysql, string $username, string $password, ?string $database): bool

Changes the user of the database connection.

Parameters:

  • $mysql (mixed)
  • $username (string)
  • $password (string)
  • $database (?string)

Returns: bool

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_change_user is implemented in the compiler, see the internals page.