# How do I get Gitea and mssql working together?

**URL:** <https://forum.gitea.com/t/how-do-i-get-gitea-and-mssql-working-together/1205>\
**Category:** Install/Maintain/Configure\
**Created:** [May 30, 2019, 9:20am UTC](https://forum.gitea.com/t/how-do-i-get-gitea-and-mssql-working-together/1205 "2019-05-30T09:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imranh27](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@imranh27](https://forum.gitea.com/u/imranh27)\
**Post date:** [May 30, 2019, 9:20am UTC](https://forum.gitea.com/t/how-do-i-get-gitea-and-mssql-working-together/1205/1 "2019-05-30T09:20:26Z")

</div>

Hi There,

New user here, and I have a few questions… any advice on this is much appreciated.

**Background**  
So we are trialling gitea within our company (it looks ace!) as the company needs some kind of source control system. It is a Windows world so we have a SQL Server which we would like to use as the repository. We created the account on the server and the credentials all look spot on, I can log on to the server via SSMS with the gitea account and I can create/amend objects in the database. But the UI threw the error…

“The database settings are invalid: Login error: EOF”

This was if we used the IP or the DNS name for the DB.

So I switched across to sqllite to make sure it works and that works like a champ.

For the mssql the app.ini database section is…

[database]  
DB\_TYPE = mssql  
HOST = VSQL02:1433  
NAME = gitea  
USER = gitea  
PASSWD = gitea  
SSL\_MODE = disable

(DB = gitea and user = gitea)

**Questions**

1. Has anyone been able to get this working with mssql? is there something I am missing?
2. We are a small team of two devs at the moment so could we get away with just the sqllite database?
3. To switch databases, do I just stop the service which is running gitea on the server and then modify the app.ini to point at the new database and then restart the service?

Thanks,

Imran,

---

<div class="post-metadata">

**Author:** ![amans](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@amans](https://forum.gitea.com/u/amans)\
**Post date:** [February 21, 2024, 7:44pm UTC](https://forum.gitea.com/t/how-do-i-get-gitea-and-mssql-working-together/1205/2 "2024-02-21T19:44:57Z")

</div>

Hi,

I am facing the same issue

I have found the answer to similar question of yours in one of the youtube’s video

[![](https://img.youtube.com/vi/5uOWJqex2ZQ/maxresdefault.jpg "Gitea Installation and Setup with MSSQL Database | Win10 | SQL Server Express 2022 | SSMS 19") ](https://www.youtube.com/watch?v=5uOWJqex2ZQ)
