title: Creating a MySQL database from PHP with username, password and all privileges
body: <p>I have a php file which connects to mysql database.</p>
  
  <p>I need to create a condition, which if the database is not found, it will create it.</p>
  
  <p>I researched and I found how to create a database with PHP. However, I need to create one with the following criteria:</p>
  
  <p>DB Name, DB User, Password and all privileges granted</p>
  
  <p>Is there a way how I can implement this?</p>