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

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

Why am I getting SQL errors right off during the setup?

org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
    at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(

caused by: org.hibernate.exception.SQLGrammarException: could not execute statement
    at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(

caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'confluence.cwd_application_attribute' doesn't exist
    at jdk.internal.reflect.GeneratedConstructorAccessor307.newInstance(Unknown Source)

1 answer

0 votes
Daniel Ebers Community Leader Nov 20, 2020

Hi Russell,

welcome to the Atlassian Community!

The error message suggests not all needed tables could be created. Please kindly check if permissions on the database are set in a way the installer can create and populate them all.

For this I'd like to refer you to the documentation:

Please also pay special attention to the collation. The error message you have encountered was reported by other users of Community caused by a faulty collation. Please double check.




Thanks for the info! I did follow the steps in the article you referenced and still no luck. It seems like not all the tables are being created during the setup process. Any thoughts as to why that might be given I have the MYSQL config setup correctly?

Daniel Ebers Community Leader Nov 20, 2020

From the outside this is very hard to tell. It is always a lot easier when sitting directly in front of the troubling system.
Apart from checking the collation, the setup itself and going through logs for (possibly) more information there is not much I could imagine doing from here right now.
Probably other Community members have additional information.

In case you are not bound to MySQL some users had a more positive experience using PostgreSQL as a backend - but I am aware this is not a fix of your problems. So in case you must go with MySQL I'd check in your case if other members come up with additional ideas here.

Suggest an answer

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

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,631 views 7 30
Read article

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