mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
added mysql/load-data.sh
This commit is contained in:
12
demo/Blog/misc/mysql/load-data.sh
Executable file
12
demo/Blog/misc/mysql/load-data.sh
Executable file
@ -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
|
||||
|
Reference in New Issue
Block a user