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.

CREATE DATABASE bitbucket CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL PRIVILEGES ON bitbucket.* TO 'root'@'172.99.99.99' 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

Hi! 

Could you provide log info from catalina.out? 

 

Cheers, 

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

174 views 20 8
Join discussion

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