mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #168] Missing documentation about using mysql #123
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FunctionalHacker on GitHub (Sep 23, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/168
I have looked through the wiki and the help pages within shiori, and I can't find anything on how to use mysql. I can add this to the wiki myself if someone explains to me how I can use it.
@RadhiFadlillah commented on GitHub (Sep 23, 2019):
@ReekyMarko sorry I forgot to add it to the wiki.
To use MySQL database, first set environment variable
SHIORI_DBMStomysql. After that specify the user, password database name (and if needed the address of database) via these environment variables :SHIORI_MYSQL_USERSHIORI_MYSQL_PASSSHIORI_MYSQL_NAMESHIORI_MYSQL_ADDRESSIn Linux this can be done in one command like this :
The related code for these actions can be seen here :
github.com/go-shiori/shiori@df98c281d3/internal/cmd/root.go (L103-L118)By the way, if you use
SHIORI_MYSQL_ADDRESS, the address must be wrapped in the protocol e.g.SHIORI_MYSQL_ADDRESS=tcp(mysql_address_or_ip_here:3306). For more details check issue #156.@FunctionalHacker commented on GitHub (Sep 23, 2019):
Thanks a lot! I think this is already sufficient to add to the wiki.
EDIT: Apparently I can't access the markdown source for your comment, but if you click "edit" on the comment you could copy it to the wiki.