We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f513af commit dd9e285Copy full SHA for dd9e285
install/kimai-install.sh
@@ -45,7 +45,7 @@ DB_NAME=kimai_db
45
DB_USER=kimai
46
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
47
MYSQL_VERSION=$(mysql --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
48
-$STD root -e "CREATE DATABASE $DB_NAME;"
+$STD mysql -u root -e "CREATE DATABASE $DB_NAME;"
49
$STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
50
$STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
51
{
0 commit comments