where can I find the db file #3935

Closed
opened 2025-11-02 05:31:05 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @zuhairamahdi on GitHub (Sep 11, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

we have gitea installed and using sqlite. but in the app.ini file it uses relative path instead of absolute:
PATH = data/gitea.db
we are trying to migrate the database to MS SQL.

Screenshots

Originally created by @zuhairamahdi on GitHub (Sep 11, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) 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): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description we have gitea installed and using sqlite. but in the app.ini file it uses relative path instead of absolute: `PATH = data/gitea.db` we are trying to migrate the database to MS SQL. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 05:31:05 -06:00
Author
Owner

@sapk commented on GitHub (Sep 11, 2019):

I don't know you full configuration so I can't say exactly where the db file is located but you can use find command to search a file by name across your filesystem.

find / -name gitea.db
@sapk commented on GitHub (Sep 11, 2019): I don't know you full configuration so I can't say exactly where the db file is located but you can use `find` command to search a file by name across your filesystem. ``` find / -name gitea.db ```
Author
Owner

@jolheiser commented on GitHub (Sep 11, 2019):

There is an entry on the FAQ that might help as well.
https://docs.gitea.io/en-us/faq/#where-does-gitea-store-x-file

@jolheiser commented on GitHub (Sep 11, 2019): There is an entry on the FAQ that might help as well. https://docs.gitea.io/en-us/faq/#where-does-gitea-store-x-file
Author
Owner

@zuhairamahdi commented on GitHub (Sep 12, 2019):

I found the file in C:\Windows\System32\gitea.db which is odd.

@zuhairamahdi commented on GitHub (Sep 12, 2019): I found the file in `C:\Windows\System32\gitea.db` which is odd.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3935