We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8764269 commit d726dbfCopy full SHA for d726dbf
1 file changed
lib/app.sh
@@ -75,7 +75,9 @@ BASH
75
mariadb -u root -p"${db_root}" <<SQL
76
CREATE DATABASE IF NOT EXISTS \`${app_user}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
77
CREATE USER IF NOT EXISTS '${app_user}'@'localhost' IDENTIFIED BY '${db_pass}';
78
+CREATE USER IF NOT EXISTS '${app_user}'@'127.0.0.1' IDENTIFIED BY '${db_pass}';
79
GRANT ALL PRIVILEGES ON \`${app_user}\`.* TO '${app_user}'@'localhost';
80
+GRANT ALL PRIVILEGES ON \`${app_user}\`.* TO '${app_user}'@'127.0.0.1';
81
FLUSH PRIVILEGES;
82
SQL
83
success "Database"
0 commit comments