Advertisement
pharmokan

rollback to backup mysql db command line

May 14th, 2020
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. create database global2;
  2. use global2;
  3.  
  4. grant all privileges on global2.* to 'global'@'localhost' identified by 'pw';
  5. FLUSH PRIVILEGES;
  6.  
  7. zcat dbbkup.sql.gz | mysql -u root -p7fe423zaf4518cb65 global2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement