title: How do you create a database in mySQL Workbench that you can connect to with php?
body: <p>I am trying to create a blank database with mySQL Workbench that I can connect to with php. All this is on my local machine.</p>
  
  <p>Here's what I think you do.</p>
  
  <ol>
  <li>Click on Create New EER Model</li>
  <li>Create a new Physical Schemata</li>
  <li>Give it a name</li>
  <li>Save Model to Current File</li>
  <li>I think the name you add here is the database name?</li>
  </ol>
  
  <p>However I can't connect to that name in php.
  I have been trying this with a few options and one of them worked, but I can't see what's different about the ones that don't work.</p>
  
  <p>There must be something very simple I am missing here.</p>
  
  <p>eg this works:</p>
  
  <pre><code>$dbname = 'test';
  $db = mysql_select_db($dbname);
  echo '&lt;br&gt;db test is '.$db;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/RWaIt.jpg" alt="enter image description here"></p>