fix:shell script

This commit is contained in:
simonzhangsz committed 2023-11-08 14:38:00 +08:00
1 parent 5c987ec1d9
commit 56a2f75ebb
1 file changed
+2 -1
+2 -1
View File
@@ -2,8 +2,9 @@
dbuser=root
dbpasswd=1000omc@kp!
dbhost=127.0.0.1
mysql -u$dbuser -p$dbpasswd -e 'create database if not exists $2;'
mysql -u$dbuser -p$dbpasswd -e "create database if not exists $2;"
list_table=$(mysql -u$dbuser -p$dbpasswd -Nse "select table_name from information_schema.TABLES where TABLE_SCHEMA='$1'")
for table in $list_table