Skip to content
Discussion options

You must be logged in to vote

Ok. Fixed the database url. It had to be formatted like so:

mysql://shiori:mypassword@tcp(localhost)/shiori?charset=utf8mb4"

which is to say:
mysql://db_user:db_password@tcp(localhost)/db_name?charset=utf8mb4"

[Unit]
Description=Shiori service

[Service]
ExecStart=/opt/shiori/shiori server --portable  
Environment="SHIORI_DIR=/var/lib/shiori"
User=shiori
Group=shiori
Environment="SHIORI_DIR=/opt/shiori"
Environment="SHIORI_HTTP_PORT=8080"
Environment="SHIORI_HTTP_SECRET_KEY=7iLNu1YGNCcZyEqn"
Environment="SHIORI_DATABASE_URL=mysql://shiori:mypassword@tcp(localhost)/shiori?charset=utf8mb4"
Restart=always

[Install]
WantedBy=multi-user.target

Once I had the database url correctly formatted …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@digiospace
Comment options

Answer selected by digiospace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant