service-architecture/db
2024-12-16 15:07:03 +01:00
..
db.sql Updated Database and created init scripts. 2024-12-16 15:07:03 +01:00
init.sh Updated Database and created init scripts. 2024-12-16 15:07:03 +01:00
README.md Updated Database and created init scripts. 2024-12-16 15:07:03 +01:00
remove.sh Updated Database and created init scripts. 2024-12-16 15:07:03 +01:00

Database Initialization

First create a user in the mariadb:

sudo mariab -u root -p
CREATE USER '<user>'@'localhost' IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON *.* TO '<user>'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Then modify the .env file:

SERVICE_ARCHITECTURE_USER=user
SERVICE_ARCHITECTURE_PASSWORD=password

And finally run the init.sh to create the database.

If you want to update the database, it is recommended to run remove.sh before hand.