Guest User

Untitled

a guest
Dec 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $sqlUsuario = "CREATE USER '" . $this->usuarioLogin . "'@'localhost' IDENTIFIED BY '" . $_SESSION['mysqlPass'] . "';";
  2. $bd->ejecutar($sqlUsuario);
  3. $sqlUsuario = "GRANT ALL ON . TO '" . $this->usuarioLogin . "'@'localhost' IDENTIFIED BY '" . $_SESSION['mysqlPass'] . "' WITH GRANT OPTION;";
  4. $bd->ejecutar($sqlUsuario);
  5. $sqlUsuario = "FLUSH PRIVILEGES;";
  6. $bd->ejecutar($sqlUsuario);
Add Comment
Please, Sign In to add comment