diff --git a/install/kimai-install.sh b/install/kimai-install.sh index 1cc29a538e..a4db1821df 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -33,7 +33,7 @@ DB_NAME=kimai_db DB_USER=kimai DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) MYSQL_VERSION=$(mysql --version | grep -oP 'Distrib \K[0-9]+\.[0-9]+\.[0-9]+') -sudo mysql -u root -e "CREATE DATABASE $DB_NAME;" +mysql -u root -e "CREATE DATABASE $DB_NAME;" mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');" mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;" {