Skip to content

Instantly share code, notes, and snippets.

@naltun
Created December 20, 2017 17:29
Show Gist options
  • Save naltun/4c24c404030afca0ec9090a554916d2a to your computer and use it in GitHub Desktop.
Save naltun/4c24c404030afca0ec9090a554916d2a to your computer and use it in GitHub Desktop.
PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)
// My connection method
$connection = new mysqli($host, $dbuser, $pass, $dbname, $port);
var_dump($connection); // long live the connection errors
mysqli_close($connection);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment