updated initial run script to not fail on create user
This commit is contained in:
parent
9b48a1a73f
commit
3d07cbfbbc
1 changed files with 3 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
# create databases
|
# create databases
|
||||||
CREATE DATABASE IF NOT EXISTS `local_laravel`;
|
CREATE DATABASE IF NOT EXISTS `pf2_db`;
|
||||||
|
|
||||||
# create local_developer user and grant rights
|
# grant rights to pf2_user (created by MariaDB entrypoint)
|
||||||
CREATE USER 'local_developer'@'db' IDENTIFIED BY 'secret';
|
GRANT ALL PRIVILEGES ON `pf2_db`.* TO 'pf2_user'@'%';
|
||||||
GRANT ALL PRIVILEGES ON *.* TO 'local_developer'@'%';
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue