Skip to content

Commit

Permalink
DATABASE_URL with version and charset
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Sep 4, 2023
1 parent ad44f49 commit 928b513
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _documentation/fresh-ubuntu-18.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ composer install --optimize-autoloader -n
vim .env
```

Configure the above created database credentials:
Configure the database connection and adjust the settings to your needs (compare with the [original .env file]({{ site.kimai_v2_repo }}/blob/main/.env.dist)):
```
DATABASE_URL=mysql://kimai2:[email protected]:3306/kimai2
DATABASE_URL=mysql://kimai2:[email protected]:3306/kimai2?charset=utf8&serverVersion=5.7
```

And execute the Kimai installation:
Expand Down
2 changes: 1 addition & 1 deletion _documentation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ mG0%2Fd1%403aT.Z%29s
Then your `DATABASE_URL` might look like this:
```
DATABASE_URL=mysql://root:mG0%2Fd1%403aT.Z%[email protected]:3306/kimai2
DATABASE_URL=mysql://root:mG0%2Fd1%403aT.Z%[email protected]:3306/kimai2?charset=utf8&serverVersion=5.7
```
### Which user to use, www-data, httpd or your own?
Expand Down
2 changes: 1 addition & 1 deletion _documentation/synology.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ therefore the connection string in your `.env` file could look different from th
default [installation]({% link _documentation/installation.md %}) docs:

```
DATABASE_URL="mysql://kimai2:password@localhost:3307/kimai2?unix_socket=/run/mysqld/mysqld10.sock"
DATABASE_URL="mysql://kimai2:password@localhost:3307/kimai2?unix_socket=/run/mysqld/mysqld10.sock?charset=utf8&serverVersion=5.7"
```

BTW: You find the MariaDB executable at `/volume1/@appstore/MariaDB10/usr/local/mariadb10/bin`.
Expand Down
2 changes: 1 addition & 1 deletion _documentation/webserver-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ which needs to be allowed by Apache via `AllowOverride All`.
# optionally set the value of the environment variables used in the application
#SetEnv APP_ENV prod
#SetEnv APP_SECRET <app-secret-id>
#SetEnv DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name"
#SetEnv DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name?charset=utf8&serverVersion=5.7"
</VirtualHost>
```

Expand Down

0 comments on commit 928b513

Please sign in to comment.