Created
          August 5, 2018 10:23 
        
      - 
      
 - 
        
Save deviousway/0488afcd3beb7c44412795b865594bbd to your computer and use it in GitHub Desktop.  
    mysql export users with privileges and password
  
        
  
    
      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
    
  
  
    
  | #on old | |
| mysqldump -udebian-sys-maint -p$PASSWORD mysql user > user_table_dump.sql | |
| #on new | |
| mysql -udebian-sys-maint -p$PASSWORD mysql < user_table_dump.sql | |
| #login to mysql | |
| mysql> flush privileges; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment