Bladeren bron

Remove localhost access to database (only need container access for docker)

https
jakobsn 6 jaren geleden
bovenliggende
commit
5a2eb9ba32
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. +5
    -1
      mysql/sql/init.sql

+ 5
- 1
mysql/sql/init.sql Bestand weergeven

@@ -143,4 +143,8 @@ Create default database user

CREATE USER 'root'@'10.5.0.6' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON db.* TO 'root'@'10.5.0.6';
/*GRANT ALL PRIVILEGES ON db.* TO 'root'@'localhost';*/

/*
Can be used to connect local webserver to the database
GRANT ALL PRIVILEGES ON db.* TO 'root'@'localhost';
*/

Laden…
Annuleren
Opslaan