Cannot Migrate from internal db to MySQL db.

Currently I'm using an evaluation Bitbucket-Server version which is currently running our local server. As I'm migrating existing db to MySQL(locates on another server) it pops up an error at the process of migration.After Entering the Credentials for My SQL db I have tested the connection which gave a success messages. But while it migrating, it stops with an error saying " you can't specify target table 'cwd_user' for update in from clause".

I have created a new instance of a Bitbucket and tried to connect with MySQL which ended me up with the same error message.

I have the latest MySQL J connector(mysql-connector-java-5.1.44) installed and supported version of MySQL(5.7.9) installed and these are the commands I've been used to create MySQL db.

GRANT ALL PRIVILEGES ON bitbucket.* TO 'root'@'' IDENTIFIED BY 'mypassword';

I have attached few screen-shots which have been taken during the migration and hope someone could come up with a solution.

Thank You in advance.1.PNG2.PNG

1 answer

0 vote
Gonchik Tsymzhitov Community Champion Nov 18, 2017


Could you provide log info from catalina.out? 



Gonchik Tsymzhitov

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,319 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot