1 #!/bin/bash #开头必写 2 3 #导入数据库 4 mysql -uroot -p${pwd} <<EOF 5 set names utf8; 6 drop database if exists api; 7 create database if not exists api; 8 use api; 9 source ${path}/db/api.sql; 10 exit 11 EOF
1 #!/bin/bash #开头必写 2 3 #导入数据库 4 mysql -uroot -p${pwd} <<EOF 5 set names utf8; 6 drop database if exists api; 7 create database if not exists api; 8 use api; 9 source ${path}/db/api.sql; 10 exit 11 EOF
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。