The database, as currently configured, is not accessible.

I upgraded stash to 3.7.0 on a new server (old one died) after moving old stash home directory over. When I start stash I get the following error: 

  • The database, as currently configured, is not accessible.

My stash-config.properties in the /shared directory looks like this 

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/mysql_stash?autoReconnect=true&characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB
jdbc.user=stashuser
jdbc.password=password

and I have the following mysql jar 

/opt/atlassian/stash/3.7.0/lib/mysql-connector-java-5.1.23-bin.jar

Looking forward to your response

 

1 answer

0 votes
Volodymyr Krupach Community Champion Feb 25, 2015

Hi Jim!

Do you have local version of MySQL running on the same new server? Your JDBC path dbc.url=jdbc:mysql://localhost:33066/mysql_stash? tells that there should be MySQL DB server on the same computer and there should be mysql_stash database.

If you have the DB server and database, can you connect to it with MySQL client:

mysql --user=stashuser --password=password mysql_stash

MySQL Command-Line Tool: http://dev.mysql.com/doc/refman/5.6/en/mysql.html

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

651 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot