From 04345b198811991ab045d7c9f860b563f0a08acd Mon Sep 17 00:00:00 2001 From: jarod5001 <68397534+jarod5001@users.noreply.github.com> Date: Thu, 1 Feb 2024 00:31:40 +0100 Subject: [PATCH] Fix dB permissions --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 89efffe..adb0140 100644 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,8 @@ chown $app:$app "$install_dir/configuration.php" #================================================= ynh_script_progression --message="Setuping database..." +ynh_mysql_execute_as_root --sql="GRANT ALL PRIVILEGES ON *.* TO '$db_user'@'localhost' IDENTIFIED BY '$db_pwd' WITH GRANT OPTION; FLUSH PRIVILEGES;" --database=$db_name + ynh_mysql_execute_file_as_root --file="$install_dir/installation/sql/mysql/base.sql" --database=$db_name ynh_mysql_execute_file_as_root --file="$install_dir/installation/sql/mysql/extensions.sql" --database=$db_name ynh_mysql_execute_file_as_root --file="$install_dir/installation/sql/mysql/supports.sql" --database=$db_name