title: How to execute mysql queries using salt state
body: <p>I want to execute a mysql query. I want to change the root password for mysql. How can I do this using salt state? My SLS file looks like this </p>
  
  <pre><code>test:
   mysql_query.run:
      - order: 2
      - database: '*'
      - query: |
         - "FLUSH PRIVILEGES;"
         - "SET PASSWORD FOR root@'localhost' = PASSWORD('root');"
         - "UPDATE mysql.user SET Password=PASSWORD('root') WHERE User='root';"
  </code></pre>
  
  <p>I think the state mysql_query.run executes only database related query so it expects database. So when I run above sls I get 'database test not found message' and it doesn't change the password of root to root. How can I solve this ?</p>