Skip to content

Commit

Permalink
script for prepare a test-db
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjiang committed Oct 17, 2023
1 parent e535285 commit 513265b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions prepare_test_db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mysql -h127.0.0.1 -uroot -p << EOF
drop database if exists ezid_test_db;
create database ezid_test_db;
use ezid_test_db;
drop user if exists 'ezid_test_user'@'%';
create user 'ezid_test_user'@'%' identified by 'ezid_test_pw';
grant all privileges on ezid_test_db.* to 'ezid_test_user'@'%';
EOF


python ./manage.py migrate

python ./manage.py loaddata db

0 comments on commit 513265b

Please sign in to comment.