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

 

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-08-19
  • 2021-03-31
  • 2021-05-25
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-08
  • 2021-11-05
  • 2022-12-23
  • 2021-07-27
  • 2021-11-27
相关资源
相似解决方案