Skip to content

Commit d726dbf

Browse files
Fix
1 parent 8764269 commit d726dbf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/app.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ BASH
7575
mariadb -u root -p"${db_root}" <<SQL
7676
CREATE DATABASE IF NOT EXISTS \`${app_user}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
7777
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}';
7879
GRANT ALL PRIVILEGES ON \`${app_user}\`.* TO '${app_user}'@'localhost';
80+
GRANT ALL PRIVILEGES ON \`${app_user}\`.* TO '${app_user}'@'127.0.0.1';
7981
FLUSH PRIVILEGES;
8082
SQL
8183
success "Database"

0 commit comments

Comments
 (0)