Unable to do the database setup in confluence7.13.4 my local machine
Asked by Peruma Chinnasamy:

Dear team,

In my local system I am doing confluence 7.13.4 local setup on windows for development purpose..

Installation was completed successfully while doing confluence setup in UI it asking database setup.

I was downloaded Mysql server in my local and I was created default root user in Mysql workbench. Then I filled hostname, port, database name, user name and password then try to test connection when below error message I am getting

"

**Can't reach database server or port**

SQLState - 08S01  
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 118 milliseconds ago. The last packet sent successfully to the server was 110 milliseconds ago."

And then I was downloaded mysql connector jar and deployed in lib folder.

After restarting tomcat I am getting below error in UI

"BootstrapException: Unable to bootstrap application: Couldn't save confluence.cfg.xml to C:\\Program Files\\Atlassian\\Application Data\\Confluence directory."

Kindly help me to do confluence local setup. If I did any wrong step let me know to correct that step.

Thanks and Regards

Peruma.C


Answers:
author: Srinatha T
body: Hi [@Peruma Chinnasamy](/t5/user/viewprofilepage/user-id/4879891) ,

Welcome to Atlassian community.

It sounds like your user might not have the proper permissions to write to that directory.

Have a look here: [Unable to Complete Installation Due to File Permissions](https://confluence.atlassian.com/confkb/unable-to-complete-installation-due-to-file-permissions-104300781.html)

Once your user is given the proper read/write permissions then it should be able to save the file.

Regards,

Srinath T

comments: author: Peruma Chinnasamy
body: Hi Srinath,

Thank you for you immediate response

I gave all the permission confluence home and install directories.

Thanks and Regards

Peruma.C


author: Srinatha T
body: [@Peruma Chinnasamy](/t5/user/viewprofilepage/user-id/4879891) , Thank you for the update. Hope that resolved the issue ?

Thanks,

Srinath T


author: Peruma Chinnasamy
body: Hi Srinatha,

No the issue is not resolved yet. Still facing same issue.![bootstrap exception.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/200238i5D22DE6ABB13CF01/image-size/large?v=v2&px=999 "bootstrap exception.jpg")

Thanks and Regards

Peruma.C


author: Nic Brough -Adaptavist-
body: This is still saying the user running Confluence probably doesn't have the right permissions to create, edit and delete files in the directory it mentions


author: Peruma Chinnasamy
body: Now that error cleared

below error throwing ![new sql error.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/200451i26B0DA4A5ACFEE68/image-size/large?v=v2&px=999 "new sql error.jpg")


author: Srinatha T
body: [@Peruma Chinnasamy](/t5/user/viewprofilepage/user-id/4879891) , seems like DB connection issue. Do you have the DB "Local_conf_db" on your mysql database? Can you login to the DB with the root user and password which you are using above ?

Thanks,

Srinath T


author: Peruma Chinnasamy
body: Hi Srinatha,

Yes I have local database in my machine. I was created new database as "Local_conf_db"

I can able to login the database by using root user in mysql work bench and cmd.

For database I was installed mysql server and mysql work bench in my local system.

Thanks and Regards

Peruma.C


Tags: confluence-server

server