Files
42_INT_13_inception/srcs/requirements/mariadb/conf/create_db.sql
hugo gogo 9708715bb5 mariadb and nginx works both with debian and alpine
+ makefile a little clean up
2022-09-18 16:39:13 +02:00

6 lines
217 B
SQL

USE mysql;
CREATE DATABASE IF NOT EXISTS ${DB_NAME};
CREATE USER IF NOT EXISTS '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PSWD}';
GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO '${DB_USER}'@'localhost' with grant option;