In order to connect mongoDB to tableau or other BI tools, you need install MongoDB BI Connector.
Table of Contents
Official document
https://www.mongodb.com/docs/bi-connector/current/installation/
Prerequisites
https://www.mongodb.com/docs/bi-connector/current/tutorial/install-bi-connector-rhel/
rpm -qa | grep -i openssl
Download
https://www.mongodb.com/try/download/bi-connector
Install
tar -xvzf mongodb-bi-linux-{arch}-{platform}-{version}.tgz
sudo install -m755 bin/mongo* /usr/bin/
Config
systemLog:
logAppend: true
path: "/data/mongosqld/logs/mongosqld.log"
verbosity: 2
mongodb:
net:
uri: "<mongodb_host>:<mongodb_port>"
net:
bindIp: 0.0.0.0
port: 3307
Start
mongosqld --config /data/mongosqld/mongosqld.conf
Add to systemd (optional)
sudo sh -c 'cat > /usr/lib/systemd/system/mongosqld.service <<EOF
[Unit]
Description=mongosqld service
[Service]
Type=simple
User=ec2-user
WorkingDirectory=/home/ec2-user
ExecStart=/usr/bin/mongosqld /data/mongosqld/mongosqld.conf
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
EOF'
sudo systemctl enable mongosqld
sudo systemctl start mongosqld
Connect
After mongosqld been installed, you can connect it by mysql client, tableau, etc.
You can query mongoDB by sql.
bindIp: 0.0.0.0
port: 3307


Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Hi! I knoww thhis iis kind off ooff topoic bbut Iwas
wonderinng if youu kew where I could find a captha plugin forr mmy commsnt form?
I’m using thhe same bllog platform as yopurs andd I’m havig truble
findiing one? Thawnks a lot!
Great post. I waas cheking constfantly this bpog
andd I am impressed! Verry usseful information particularlly the
last pasrt 🙂 I care forr such info a lot. I wass lookking for thiss
certai info ffor a llong time. Thank youu and bst oof luck.