config_mysql.sh 172 B

123456
  1. #!/bin/bash
  2. mysql -u root -p << END
  3. create database pwmantest;
  4. create user 'pwman'@'localhost' IDENTIFIED BY '123456';
  5. grant all on pwmantest.* to 'pwman'@'localhost';
  6. END