1
0
mirror of https://github.com/actix/examples synced 2025-06-27 17:39:02 +02:00

simplify sql create tables

This commit is contained in:
Rob Ede
2023-07-18 01:09:09 +01:00
parent 048f4fd884
commit 16bfb1cf2f
11 changed files with 31 additions and 35 deletions

View File

@ -18,11 +18,11 @@ $ pwd
The `sql` directory contains the SQL files used for database setup:
```sh
mysql -u root -p < sql/create_database.sql
mysql -u root -p my_bank < sql/bank_details.sql
mysql -u root -p my_bank < sql/branch_details.sql
mysql -u root -p my_bank < sql/teller_details.sql
mysql -u root -p my_bank < sql/customer_details.sql
mysql -u root -p < sql/0_create_database.sql
mysql -u root -p my_bank < sql/1_bank_details.sql
mysql -u root -p my_bank < sql/2_branch_details.sql
mysql -u root -p my_bank < sql/3_teller_details.sql
mysql -u root -p my_bank < sql/4_customer_details.sql
```
For each step you will be prompted for the root user's password. If there's no password set on the root use, just hit enter again.