title: PHP 7 can't connect to database
body: <p>I update my PHP version to 7 on my Centos7 server.</p>
  
  <p>With my sequel pro I can connect to my database from everywhere but with normal mysql connection in php I get an Access denied. Someone had the same problem and solved it?</p>
  
  <pre><code>$servername = "localhost";
  $username = "xxxx";
  $password = "xxxxx";
  
  $conn = new mysqli($servername, $username, $password);
  
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  }
  
  echo "Connected successfully";
  </code></pre>