no session provider 'mysql' #1650

Closed
opened 2025-11-02 04:08:26 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @donlui on GitHub (Mar 25, 2018).

Description

when i try use mysql session provider, gitea print error

panic: session: unknown provider 'mysql'(forgotten import?)

Originally created by @donlui on GitHub (Mar 25, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.0 - Git version: 2.7.4 - Operating system: Ubuntu 17.04 - Database: - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/donlui/a91a6ad3bc22e5198db9132742d1d865 ## Description when i try use mysql session provider, gitea print error `panic: session: unknown provider 'mysql'(forgotten import?)`
GiteaMirror added the type/feature label 2025-11-02 04:08:26 -06:00
Author
Owner

@lafriks commented on GitHub (Mar 25, 2018):

Currently only values memory, file or redis is supported for session storage. Probably we need to update github.com/go-macaron/session dependency to support this...

@lafriks commented on GitHub (Mar 25, 2018): Currently only values `memory`, `file` or `redis` is supported for session storage. Probably we need to update `github.com/go-macaron/session` dependency to support this...
Author
Owner

@stale[bot] commented on GitHub (Feb 4, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 4, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1650