I need to connect to a MongoDB (Heroku) database through Pentaho, but I can't find the HostName anywhere. Does anyone know where I can find out?
I haven't worked with Heroku, but probably you'll have a configuration panel somewhere with the data to connect to the database, I would ask on Heroku about it.
This link is not directly related, but explains how to add to Heroku a Config Var with the URI of the MongoDB connection to an Atlas MongoDB database, probably you'll have something similar: https://www.mongodb.com/developer/products/atlas/use-atlas-on-heroku/
Related
I have a site hosted up on Heroku (a nodejs app), which is connected to my Mongo database. I was wondering if I can just set up a local mongo database rather than just connecting to the database (with the connection uri) everytime, just like SQL.
Is this possible?
if your question is "can I setup a local mongo database", the answer appears to be yes, this is the first link that pops up when you type it into google :
https://docs.mongodb.com/guides/server/install/
here is instruction on setting up mongo on Mac or Windows.
https://zellwk.com/blog/local-mongodb/.
I created a shopping site using node.js and launched it on Heroku, but I face one problem:
My heroku is not connecting with mongoose atlas
However, all configuration seems right, like uri variable.
What should I do: I did not get any error.
The official documentation is art "Using MongoDB Atlas on Heroku", written by Adrienne Tacke, so double-check your config (as in here), especially the db connection.
And, as described here, in order to do this in combination with Heroku dynos, add 0.0.0.0/0 (i.e. all addresses) to your MongoDB Atlas whitelist.
Finally, check your code (as seen here), using MongoClient.
You have a concrete example at "M2 - Heroku Deployment (with Mongo Atlas)" from Uros Cirkovic:
check your logs with heroku logs -n 200
Via shell, I can directly connect to mongo database with this string
mongo --ssl host1,host2:port/MyDataBase...
And I land directly on the MyDataBase.
Is there a similar way to do it in Compass? I get connected to whole server and I can see all the other databases. I just want to connect to MyDataBase.
I am using the lattest version of Compass, so it may differ from your current version.
It is important the you are in the network of the server, or use a VPN connection, otherwise, it does not work.
Step 1
Step 2
Please,let me know if that works!
I'm using Deployd as an API interface and I have a problem when backing up my Deployd's data and transferring it to an online server.
I have done some research on google and see this issue on GitHub.
as #shawnpk comment I connect to localhost:27017 in Robomongo and that results in this:
https://s23.postimg.org/devmppvjf/mongo.png
I can't find any sign from the collation from Depolyd in Robomongo.
Any one know how can I fix this?
I believe you need to point your mongodb execution to the data path of your deployd project directory. Something like this:
mongod --dbpath /path/to/deployd/directory/data/
Then you can do mongoexport
I am setting up MongoDB on localhost WAMP,
when i hit the port number http://127.0.0.1:28017 getting following error:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
Please let me know how can i view database like phpmyadmin for MongoDB.
MongoDB does not offer by default a Webinterface for Administration, so you have to use additional Software. I know that Adminer also supports MongoDB.
Otherwise please read this Section in the MongoDB Docs (which are really great for learning MongoDB. I haven't tried all of them, but i think Adminer will do the Jobs. The MongoDB Shell is also great.
You can use cPanel too for this. cPanel server , because it is just another linux server.