title: Converting from mysql_* to mysqli throws "Can't connect to MySQL server on 'host_name'"
body: <p>I've just started to look into <strong>mysqli</strong>. When I make the <strong>mysqli</strong> connection with the database I am having a problem with the function.</p>
  <p><strong>My Code:</strong></p>
  <pre><code>$link=mysqli_connect(&quot;host&quot;, &quot;user&quot;,&quot;password&quot;,&quot;database_name&quot;, true) or die ('I cannot connect to the database because: ' . mysqli_connect_error()); 
  
  $query=&quot;CALL `database_name`.`table_name`('107','0100000000',63,122)&quot;;
    $result=mysqli_query($link,$query);
    $rs = mysqli_fetch_array($result);
  
  $image = $rs['image'];
  $title = $rs['title'];
  
  echo $title;
  
  mysqli_close($link);
  </code></pre>
  <p>When I execute this in my PHP code it throws an error.</p>
  <p><strong>Error:</strong></p>
  <p><strong><code>Can't connect to MySQL server on 'host_name' (110)</code></strong></p>
  <p>But when I use it with <strong>MySQL</strong> extension it works fine.</p>