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:


{sql-query:datasource=JDBC/confluence}

{sql-query:datasource=mysql:jdbc/confluence}

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!

Lirria

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.

Lirria

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 ...

631 views 21 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