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

0 votes
Accepted answer

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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,077 views 17 14
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