This is not a valid database name


I got stuck with the "not valid database" -error when trying out PocketQuery. I'm using MySQL and the testdb -database is in the same MySQL-instance as confluence. Confluence works fine.

Parameters entered in Database Management:

* Name: MySQL vega

* Url: jdbc:mysql://localhost/testdb

* Driver: com.mysql.jdbc.Driver

* User: root

* Password: *****

I tried out also Bob Swifth's SQL plugin which worked fine with the same set of parametres

(new Data source added to confluence tomcat's server.xml

<Resource name="jdbc/testdbDS"


Any ideas what went wrong/how to solve the issue?



2 answers

1 accepted

Mystery solved. Apparently the name of the database entry point can't contain any space character. So I renamed 'MySQL vega' to 'MySQL' and "Oh yes, I can connect to this database".

Hi Jarmo,

sorry for the late reply! Glad you solved this issue by yourself. Actually, the entity names in the PocketQuery admin are used as keys for the objects and may not contain spaces. This is described in our documentation: "(...)only the letters [A-Za-z_-] are allowed for entity names"

Did you say there was no error message indicating this mistake? There actually should be. I'll inspect this behaviour as soon as possible!


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

602 views 20 11
Join discussion

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