Guest User

Untitled

a guest
Jun 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. cat > mytempsql <<EOF
  2. CREATE DATABASE testerdb;
  3. GRANT ALL PRIVILEGES ON testerdb.* TO 'tester'@'localhost' IDENTIFIED BY 'testing';
  4. exit
  5. EOF
  6. mysql --user=root --password=$rootsqlpw < mytempsql
  7. rm mytempsql
Add Comment
Please, Sign In to add comment