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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

"Database Contains Existing Confluence Data" on migration without changing database server

Today I faced this error while migrating Confluence Server from one server to another server "Database Contains Existing Confluence Data". Although Database server is same.

I copied , server.xml and whole home-folder from old server to new server.  Config file shows correct home-folder on new server.

How can we solve this, any ideas?

1 answer

1 accepted

1 vote
Answer accepted

This means that Confluence believes that it is a new installation, but has been pointed to a database that already contains a load of Confluence data.

It is hard to say what the underlying problem here is without doing a lot of delving, but there is a slightly-hacky fix.

Create a new database (maybe with the same credentials, but definitely a different name).  Stop your Confluence, edit <confluence home>/confluence.cfg.xml so that it points to the empty database.  

Start Confluence and run through the "create a new empty confluence" process with this.

Once complete, stop that, then edit the confluence.cfg.xml file so that it points at the old database.  Restart Confluence, log in  as an admin  (using an account from the old Confluence), and trigger a re-index.

Thanks for the reply. Actually your advice works.

I followed tutorial on this page, which is almost same as yours -

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

480 views 24 9
Join discussion

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