Last active
          August 29, 2015 14:04 
        
      - 
      
- 
        Save nateflink/946aa10d3872ba896ea9 to your computer and use it in GitHub Desktop. 
    MYSQL create db
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CREATE USER 'foobaz'@'%' IDENTIFIED BY 'foopassword'; | |
| CREATE DATABASE IF NOT EXISTS `foobaz` ; | |
| GRANT ALL PRIVILEGES ON foobaz.* TO foobaz@localhost IDENTIFIED BY 'foopassword'; | |
| ;superuser | |
| CREATE USER 'user'@'%' IDENTIFIED BY 'pass'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION; | |
| CREATE USER 'user'@'localhost' IDENTIFIED BY 'pass'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION; | |
| FLUSH PRIVILEGES; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment