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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Jira 8.13.1 seems to be using MySQL 8 keyword in SELECT query

The versions in use:

MySQL 8; Jira 8.13.1

I am trying to reindex after upgrading from Jira 8.9 to 8.13.1 and MySQL from 5.7 to 8. I get the error - 

Exception during index consistency check: com.atlassian.cache.CacheException: com.atlassian.cache.CacheException: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT ID, pname, URL, LEAD, DESCRIPTION, pkey, pcounter, ASSIGNEETYPE, AVATAR, ORIGINALKEY, PROJECTTYPE FROM project ORDER BY pname (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', DESCRIPTION, pkey, pcounter, ASSIGNEETYPE, AVATAR, ORIGINALKEY, PROJECTTYPE FR' at line 1)

'LEAD' is one of the new keywords in MySQL 8. Hence the error from the query. 

I tried starting Jira in safe mode to make sure there is no impact from user-installed plugins.

Any thoughts to what could have gone wrong?

1 answer

1 accepted

1 vote
Answer accepted

hi @chaitanyavaranasi welcome on the community. I sugges you to check Supported platforms page:

https://confluence.atlassian.com/adminjiraserver/supported-platforms-938846830.html

At least I can see that different Connector/J driver must be used when switching from MySQL 5.7 to MySQL 8

https://dev.mysql.com/downloads/connector/j/8.0.html

Thank you for your response Martin. Yes that did the trick. I thought running apt intall libmariadb-java should suffice. Apparently not.

Also, the official mysql site gives you a .deb file. Do not copy paste that to the lib folder. You need to apt install that deb file and use the final .jar file.

This issue is resolved.

@chaitanyavaranasi I'm happy, it helped :).

Could you accept the answer please? So anyone else can easily use this answer to solve the problem.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,071 views 8 28
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