title: What permission is required for a MySQL user to create a database?
body: <p>Is it possible for a user other than root to create a database?</p>
  
  <pre><code> GRANT SELECT, CREATE ON *.* TO 'myguy'@'thatmachine' IDENTIFIED BY PASSWORD '*12057DFA2BFBD8760D4788735B1C3E26889D7ECE' |
   GRANT ALL PRIVILEGES ON `db1`.* TO 'myguy'@'thatmachine'
   GRANT ALL PRIVILEGES ON `db2`.* TO 'myguy'@'thatmachine'
  </code></pre>
  
  <p>I wonder what privilege is missing here? Also, why does the first line have a password attached to it?</p>
  
  <p>UPDATE</p>
  
  <p>Let me further clarify what the point of my question is. I have two database machines, source and target. There are many customer databases on the source machine. I need to move those source databases to the other target machine.</p>
  
  <p>The databases are in the form of mysqldump'ed .sql files, which are sftp'd from source to target. Target user, not root, must then recreate the databases locally from each .sql file, perform some actions, then drop the database.</p>
  
  <p>I can't find a way to give these privileges to the target user without giving him global privileges on <code>*.*</code>, which effectively makes that user as dangerous as root.</p>