Guest User

Untitled

a guest
Jan 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. mysqli_query($conexaoPrimaria,"CREATE DATABASE ".$banco." ");
  2.  
  3. mysql_connect('localhost', 'user', password);
  4. mysql_query("CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';");
  5. mysql_query("GRANT ALL ON db1.* TO 'username'@'localhost'");
  6. mysql_close();
Add Comment
Please, Sign In to add comment