[root@localhost ~]# vim create.sh
#!/bin/bash
mysql -uroot -p123456 <
EOF
[root@localhost ~]# sh create.sh b1
[root@localhost ~]# mysql -uroot -p123456 -e "show databases;"
+--------------------+
| Database |
+--------------------+
| information_schema |
| b1 |
#!/bin/bash
mysql -uroot -p123456 <
EOF