Advertisement
Guest User

Untitled

a guest
Nov 20th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $host = "localhost"
  2. $user = 'usuario';
  3. $password = 'senha';
  4. $db = ' banco';
  5.  
  6. $mysqli = new mysqli($host, $user, $password, $db);
  7.  
  8. if (mysqli_connect_errno()) {
  9. print("Conexão falhou: %sn" . mysqli_connect_error());
  10. exit();
  11.  
  12. }
  13.  
  14. Warning: mysqli::mysqli(): : Access denied for user 'usuario'@'localhost' to database ' banco' in /fakepath/arquivo.php on line 14
  15. Conexão falhou: %s Access denied for user 'usuario'@'localhost' to database ' banco'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement