title: How to connect to MySQL database in PhpStorm?
body: <p>I'm trying to connect to MySQL DB with a PHP script:</p>
  
  <pre><code>&lt;?php
  $servername = "localhost";
  $username = "username";
  $password = "password";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password);
  
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  echo "Connected successfully";
  ?&gt;
  </code></pre>
  
  <p>But I don't get the message: "Connected successfully".</p>
  
  <p>What's the problem?</p>