Confluence can't start after the server restarts
Asked by ??:

![????_20220324105922.png](https://community.atlassian.com/t5/image/serverpage/image-id/189739i4F71E4DFE2E33A4E/image-size/large?v=v2&px=999 "????_20220324105922.png")![????_20220324110012.png](https://community.atlassian.com/t5/image/serverpage/image-id/189740i6F2DC93BF688EA73/image-size/large?v=v2&px=999 "????_20220324110012.png")


Answers:
author: James Richards
body: Hi [@??](/t5/user/viewprofilepage/user-id/4662076)

Thanks for posting and sorry to see you've had this issue. From the error you've posted there's a issue with your database, more likely the database hasn't started or Confluence can't connect properly.

Can you check your database? If you're unsure, the credentials are in `confluence.cfg.xml`

Check the database is configured correctly and running. If it is, then ensure Confluence can access the database tables though the same username/password in `confluence.cfg.xml.`

Hope this helps.

James.

comments: author: ??
body: HI?James

I have tried that the database can be connected normally.


author: ??
body: But I will make mistakes by backing up mysql and importing SQL through navicat. ![????_20220324113804.png](https://community.atlassian.com/t5/image/serverpage/image-id/189755i65983DDE7460A1C7/image-size/large?v=v2&px=999 "????_20220324113804.png")


author: James Richards
body: Hi,

Then it's likely you have a data corruption. If you have a stable backup then I'd suggest you restore from that and don't mess with the system.

Usually the stack trace has right down the end a message of *Caused by* it would be good to see what to original cause was.

Regards,  
James.


author: ??
body: HI James?

There is no backup of the database. Can the backup brought by confluence be recovered?

How can this situation be recovered by backup? Is there no other way?

![????_20220324143727.png](https://community.atlassian.com/t5/image/serverpage/image-id/189760i8FAFBB0925BAAA57/image-size/large?v=v2&px=999 "????_20220324143727.png")


author: James Richards
body: Hi,

It looks like you have nightly backups still turned on. The file backup-2022_03_18.zip is likely to be a full backup. You can restore your site by following these steps

<https://confluence.atlassian.com/doc/restoring-a-site-152034.html>

You will need to start with a fresh, clean installation of Confluence that's the same version.

James.


author: ??
body: hi,James, what can I do ? ![????_20220325115023.png](https://community.atlassian.com/t5/image/serverpage/image-id/189931i360B79C800441FB9/image-size/large?v=v2&px=999 "????_20220325115023.png")![????_20220325115009.png](https://community.atlassian.com/t5/image/serverpage/image-id/189932i7D7844688C56559A/image-size/large?v=v2&px=999 "????_20220325115009.png")


author: James Richards
body: Hi [@??](/t5/user/viewprofilepage/user-id/4662076)

Are you using the same version of Confluence and MySQL to do the import? And what versions are you using?

Regards,  
James.


author: ??
body: It's all the same version


author: James Richards
body: Without getting into the system and seeing everything that's happening, it's hard to say what's going on. If you have a paid licence, you can put in a support request at <https://support.atlassian.com/contact/>

James.


Tags: confluence-server