title: mysqli_connect(): (HY000/1049): Unknown database
body: <p>I'm start my own study on php using wamp but when I try to establish a connection between my database and php code I always receive this message. 
  I tried some diferent courses and for all of then I recieve this error. 
  I tried to reinstall wamp server, verify some privilegies, the phpmyadmin create tables, insert into database normally but the code doesn't connect to the database.</p>
  
  <p>Below is my connection code:</p>
  
  <pre><code>&lt;?php
      $servername = "localhost"; //default by wamp, I don't change the port, still using 80.
      $database = 'curso_estoque'; //created on phpmyadmin
      $username = "root";
      $password = "";
      $conexao = mysqli_connect($servername,$username,$password,$database);
   ?&gt;
  </code></pre>