The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error occurs as Migrate/Create new MySQL database instance in BitBucket

Cloud Solutions International
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2017

To Migrate MySQL on Bitbucket I have followed the below instruction and ended up with an error.

Step 01: Install J driver in Bitbucket
download latest driver “mysql-connector-java-5.1.44” to the Bitbucket folder, 
"C:\Atlassian\Bitbucket\5.3.1\app\WEB-INF\lib"

Step 02: Install MySQL and create database with privilege 
CREATE DATABASE bitbucket CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL PRIVILEGES ON bitbucket.* TO 'root'@'172.20.20.25' IDENTIFIED BY 'xxx';

Step 03: Migrate MySQL from Bitbucket I) Login to the Bitbucket and select migrate database. II) Click on Migrate database.

III) Once required fields are filled out, click on Test button to test the connection. IV) Clicking on Start Migration ends up with a MySQL error.

The schema could not be created.

You can't specify target table 'cwd_user' for update in FROM clause [Failed SQL: UPDATE bitbucket.cwd_user SET external_id = NULL WHERE id IN (SELECT a.id FROM ( SELECT b.id FROM cwd_user b JOIN (SELECT c.directory_id, c.external_id FROM cwd_user c GROUP BY c.directory_id, c.external_id HAVING COUNT(*) > 1 ) sq on b.directory_id = sq.directory_id AND b.external_id = sq.external_id ) a )]

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events