Advertisement
emp3hack

DBSETUP_AUTO

Dec 1st, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. mysql -u root -e "CREATE DATABASE softeng2Final;"
  2. mysql -u root softeng2Final < softeng2Final.sql
  3.  
  4. mysql -u root -e "CREATE USER 'softeng2'@'localhost' IDENTIFIED BY 'softeng2';"
  5. mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'softeng2'@'localhost';"
  6. mysql -u root -e "FLUSH PRIVILEGES;"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement