How to install MongoDB after downloading [closed] - mongodb

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Task:
To install MongoDB after downloading
To Note:
I can't install it from terminal for some reasons. And I am using Ubuntu 14.04
I just don't know what to do after downloading. Coz there are no executable files or something.

This is preety good article for installation of mongodb step by step.
How-to-install-mongodb-on-ubuntu
Click here for mongoDB tutorials
To start your mongodb server : mongod
You may find error that database directory is not created. For that,
Create your database directory(default path) : mkdir -p /data/db and then restart your server again.If you did not find any error then skip this part.You can also change your database directory path. Here is command for that mongod --dbpath /your/path
Open new terminal and execute : mongo
If you have any query feel free to comment.Good luck.

Related

pgAgent not working on Another database other than Postgres [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm trying to schedule a job using pgAgent in postgresql.
pgAgent is working fine with the postgres database, but when i'm selecting the other database which i created. It is not working, the job is getting failed.
Can someone guide me in configuring it for another database also.
Thank You
Find your %AppData%\Roaming\postgresql\ pgpass.conf file under the user which you have defined as OS's username while installation steps.
For my computer : C:\Users\postgres\AppData\Roaming\postgresql\pgpass.conf
Change the line; localhost:5432:postgres:postgres:password as localhost:5432:*:postgres:password
It works for me.
HOST:PORT:DATABASE:USER:PASSWORD
PgAgent --> Steps --> ConnectionType="Remote"
PgAgent --> Steps --> Connection string : host=localhost port=5432 dbname=dataBaseName user=userName password=password
Will Work..!

Good strategy for using docker with mongo and data [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I already have a mongo running on my computer. I would like to move this to a docker container.
Now, I understand that a container should be immutable,and I agree.
In this case, how should I actually use my local data or import it to the mongo container?
You don't have to import it, you can mount your host mongodb "data" directory to your container's /data directory where your mongodb is running within. Then your mongodb running inside a container will share the same data as you are currently using with your mongo running on your host.
This link will help: https://docs.docker.com/engine/userguide/containers/dockervolumes/
If you run mongo in a container and don't mount the data volumes out of the container then when that container stops running the data is gone with it.

Installing Bugzilla with a sql database on a different drive - how to connect database? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm attempting to install Bugzilla on a server with a MySQL database on it already. The database is on E: (for space) and Bugzilla is on C:. Currently Bugzilla does not have a database associated with it, and the perl checksetup script looks for a drive local database.
How can I attempt to get bugzilla to target the database on my other drive? Is there a line I can change in the initial scripts to do this?
You tell Bugzilla how to connect to the database server in the localconfig file.
$db_driver = mysql
# The DNS name of the host that the database server runs on.
$db_host = localhost
I believe with MySQL you can also directly connect via a local socket. Be sure to follow the Bugzilla installation instructions for setting up a database, a database user and password for the connection to use. The tables will be set up automatically by Bugzilla's setup scripts.

back up a postgres db and restore on another computer [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've just purchased a new computer (mac OSX) and I want to continue developing using the same database I had on the old computer. I don't want it remotely done cause I dont want to keep the other computer on. I just want to copy the db and put it on this computer for development. I have a USB stick I can use but I'm not sure how to proceed. brew, rails, ruby, rvm, pg are all installed and configured.
pg_dumpall ?
To dump all databases:
$ pg_dumpall > db.out
To reload this database use, for example:
$ psql -f db.out postgres
I had to do it with -o option for the oids

Postgres "Command Not Found" [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have looked at the majority of "Command Not Found" errors with Postgres and none of them are similiar to what I am running into. On my server Postgres is running effectively, as I can log into an individual database with no issues; however, when logging into the server as user postgres to run commands such as \list or create new databases I get the following error:
-bash-4.1$ \list
-bash: list: command not found
Any ideas as to why this is happening. When I was trying to troubleshoot this I thought I might be in the wrong directory so I ran pwd and this is what I get:
-bash-4.1$ pwd
/var/lib/pgsql
Any help is greatly appreciated. Thank you.
\list is no bash command, but from the command/output you posted it looks you are tryin to call it directly from within bash.
First run the psql command, when you have you should have an interactive session with it. There you should be able to use the \list command. You can read more about this here.