sql-query dataSource not found

Hello all -

This is driving me crazy. i'm trying to setup some SQL queries to find out how many attachments I have on my wiki and it just isn't working. I have tried the follwing:



I get sql: dataSource: Confluence not found.

if I do: {sql-query:datasource=confluence}

I get: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

Pretty standard confluence install (on Windows 2003, MySQL installed on the same server, JDBC connector- wiki is running fine with no configuration changes) but these queries just won't work.

not sure what to try next - I've searched the documents out there and tried all that I have found and I can't seem to figure out just what I am missing.

Any help is appreciated.

Thank you!


1 answer

1 accepted

Have you looked at SQL plugin datasource configuration ? If that doesn't help, create an issue (issue tab from that page) and attach your server.xml (where you configured your datasource) and the wiki markup you are using.

thanks Bob! I had tried that and it didn't help - I just posted the issue. I'm sure it's a config issue and I just can't see the error.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 8 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

85 views 2 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