Run Basic mysql commands from magento 2 terminal
bin/magento sql:runQueryDeveloperOnly --query "select entity_id,state,status from sales_order where increment_id = '1000000001' LIMIT 1"
Always use limit, needed columns , where condition in your query for better result
1.0.0
support only select, update and show