How to use SQL to query discourse database

This is a follow on question to one I had about finding who took part in a poll. I was told that I could get this with SQL query, but I’m not clear on how or where I can run this query.

Is there an adhoc query screen in discourse? If not, can someone point me in right direction as to where I can run SQL again discourses database.

Thanks

2 Likes

You can now use the Data Explorer Plugin to write SQL queries to your forum’s database.

4 Likes