Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to run database queries?

I think I'm running into the problem described at:

But it is not clear how to run database queries, such as 



I'm on Windows Server 2008, and attempting to update my bitbucket installation

2 answers

Thanks for the reply. I ended up:

* While logged in to the server, and at a command prompt, clone the repository with local commands

* Renaming the old Atlassian Bitbucket folder

* Make and configure a new Atlassian Bitbucket install

* Push the repository to the new install

The git commands are described here: Except <url to ORI repo> was a file path: C:\Atlassian\ApplicationData\Bitbucket\shared\data\repositories\1

0 votes

Hey @Matthew Grivich,

I hope you've since been able to run this update statement on the database you're using with Bitbucket, but in case you're still stuck - you should be able to check the contents of your file on the server, which contains the information that Bitbucket is using to connect to the external database.

From there, you should be able to then use those credentials to log in and connect to the same external database that Bitbucket is using - and then execute the query you mentioned to set the value of that particular table's record appropriately.

  • Just a heads up that for more info on what it takes to connect to the external database and execute the query, this is going to depend on the kind of database you're using. Those both should be pretty quick and easy tasks, but if you get stuck there - it may help to review the resources available for the kind of database on connecting to and executing queries against that database type.

Hope this helps!


Evan Slaughter

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,785 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you