title: Azure: Where is default user/pass for Wordpress database using MySQL in-app(preview)?
body: <p>I just started an Azure hosted WordPress App Service and chose to do the MySQL in-app(preview) option for the database. For those that aren't aware, this allows me to run the MySQL server side-by-side with my Web application within the same environment. </p>
  
  <p>However, I'm running into a problem with the way I am choosing to make MySQL queries.</p>
  
  <p>I want to reuse code from a different PHP project where the MySQL calls are in the form of PDO statements, like so:</p>
  
  <pre><code>try {
      $db = new PDO('mysql:host=localhost;dbname=localdb;charset=utf8',
                      'user',
                      'pass');
      $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
      $db-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
  }
  catch(PDOException $ex) {
      echo "did not connect...";
  }
  
  $sth = $db-&gt;prepare("SELECT *FROM MyTable;");
  $sth-&gt;execute();
  </code></pre>
  
  <p>I can't make these calls unless I have a username and password to do so.</p>
  
  <p>The PHPMyAdmin side-panel looks like this in the MySQL in-app(preview):</p>
  
  <p><a href="https://i.stack.imgur.com/ByBOg.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ByBOg.jpg" alt="PHPMyAdmin side-panel for MySQL in-app preview"></a></p>
  
  <p>And if I pull up the user accounts, this is what I see:</p>
  
  <p><a href="https://i.stack.imgur.com/KFWoJ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/KFWoJ.jpg" alt="PHPMyAdmin User Accounts"></a></p>
  
  <p>I'm lost when it comes to what user and pass I should use, and if I should even be using <code>localdb</code> as my db (that's where all the wordpress tables are listed). </p>
  
  <p>All in all, I'm just trying to pull information from the database using PDO statements and need to know how to go about it.</p>