mirror of https://github.com/openresty/openresty
added mysql/load-data.sh
parent
abfff86dbf
commit
56e75e09f2
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
mysql -h localhost -p -u monty test < misc/mysql/init-db.sql
|
||||
|
||||
../../util/import-model.pl --reset --user monty \
|
||||
--password some_pass --server localhost \
|
||||
--model posts Post.json
|
||||
|
||||
../../util/import-model.pl --reset --user monty \
|
||||
--password some_pass --server localhost \
|
||||
--model comments Comment.json
|
||||
|
Loading…
Reference in New Issue