Not able to connect Mysql Database.(" It looks like the database doesn't belong to TeamCity ")
Hi team, I am trying to connect MySql database with TeamCity but somehow I am not able to connect with it. I am getting " It looks like the database doesn't belong to TeamCity." please suggest me how to resolve it.
Please sign in to leave a comment.
Hi Arpit,
This error message indicates that the database that you have linked in the database.properties file contains a database already which is not a teamcity database. Please make sure you use the correct database and point to it. If you still don't have a database set up, make sure you prepare one appropriately and then come back to the initial start up process.
If you can't fix it, could you specify what did you do before getting to this state?
Hello team.
I have the same problem.
I ran TeamCity docker-compose on Ubuntu but after running I got: "It looks like the database is not owned by TeamCity.
The database contains tables: agent, agent_pool, agent_pool_project, agent_type, agent_type_bt_access, agent_type_info, agent_type_param, agent_type_runner, agent_type_vcs, backup_builds and 113 other tables".
Can everybody tell me how-to re-create the TeamCity database?
Hello,
Can you please share your teamcity-server.log and teamcity-maintenance.log files via uploads.jetbrains.com? Also, what version of TeamCity do you run?
In my case, using Microsoft SQL Server Management Studio, connecting to local SQL Server Express instance > Security > User account > Properties and changing default database from Master to TeamCity, solved this timespending issue.
It seems that TeamCity's database evaluation is, mistakingly, using SQL Server user's connection default database, instead of using Teamcity's own user definied or default database name, which may prevents less experienced users from using SQL Server at all.
Hope it prevents others from speding times on this odd behaviour.