title: Mysql Connect in google cloud sql
body: <p>I cannot connect to MySQL from Google cloud compute engine to MySQL storage. When I go to 172.146.221.156/test.php on browser showing an error message like this</p>
  
  <blockquote>
    <p>Warning: mysqli_connect(): (HY000/2002): Permission denied in /var/www/html/test.php on line 21
    Connect Error (2002'</p>
  </blockquote>
  
  <p>My config file is:</p>
  
  <pre><code>&lt;?php
  $conn = mysqli_connect("176.154.226.114", "root", "password");
  if (!$conn) 
  {
      die('Connect Error (' .mysqli_connect_errno());
  }
  ?&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>