Jdbc drivers does not work with comunity edition server

all jdbc drivers does not work with community edition. I am rceiving an error:

User does not have credentials to run SELECT queries on the default bucket. Add role query_select on default to allow the query to run.

how to access database with jdbc?