service-architecture/db/README.md

520 B

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.