title: Warning: mysqli_connect(): (28000/1045): Access denied for user 'mobileto'@'localhost' (using password: NO)
body: <p>I am trying to access a PHP database I created online using this URL
  </p>
  
  <pre><code>http://dns.com/data_api/connect.php
  </code></pre>
  
  <p>I have created the database and it has no username and password attached to it at the point of creation. When I try to check if the connect.php could establish a connection to the database I get this error</p>
  
  <p>Warning: mysqli_connect(): (28000/1045): Access denied for user 'mobileto'@'localhost' (using password: NO) in /home/mobileto/public_html/data_api/connect.php on line 11</p>
  
  <p>Failed to connect to MySQL: Access denied for user 'mobileto'@'localhost' (using password: NO)</p>
  
  <p>This is the connect.php file</p>
  
  <pre><code>&lt;?php
              $username = "";
              $password = "";
              $hostname = "localhost"; 
              $dbase ="mobileto_holo";
  
          //connection to the database
          //$dbhandle = mysql_connect($hostname, $username, $password) 
          $con=mysqli_connect($hostname,$username,$password,$dbase); 
          if (mysqli_connect_errno()) { 
  echo "Failed to connect to MySQL: " . mysqli_connect_error(); 
  }
          // or die("Unable to connect to MySQL");
          //echo "Connected to MySQL&lt;br&gt;";
  
      //$conn = mysql_connect("localhost","root","");
  ?&gt;
  </code></pre>
  
  <p>Please what could be wrong?</p>