mirror of
https://github.com/Lemonochrme/service-architecture.git
synced 2025-06-08 21:50:50 +02:00
520 B
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.