How to install two mongodb instance in a single machine? - mongodb

I want to setup two versions of mongodb on my machine on different ports
I already installed 4.0.5 version of the mongodb on my machine on port number 27018 but now I want to install the mongodb version 3.6 on my machine I'm installing it from this link. It show me the error of that I have already installed mongodb latest version 4.0.5. error :-
mongodb-org is already the newest version (4.0.5).
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-39 linux-headers-4.15.0-39-generic linux-image-4.15.0-39-generic linux-modules-4.15.0-39-generic
linux-modules-extra-4.15.0-39-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
How I install two instance on a single machine on different ports.

Install via package manager two packages with different version may be impossible. At now may be easy and modern way to use docker.

Related

Installing MySQL Client 5.6 on Ubuntu 18.04

I have a legacy project that I'm trying to modernize, and part of that involves setting up a more efficient system of automated backups using mysqldump.
The app's database is using MySQL 5.6, and is hosted via an RDS instance. To get mysqldump up and running, I believe I need to install a version of mysql-client that corresponds to 5.6.
However, running apt-get install mysql-client installs 8.0 by default. However, I can't find any version-specific versions of mysql-client available. Running sudo apt-get install mysql-client-5.7 returns a notice that there's no installation candidate available.
Is it still possible to install older versions of mysql-client? If not, is there another way to get ahold of the mysqldump functionality?
Edit: As #exussum noted below, 8.0 is backwards compatible with 5.6 and 5.7. I was hitting errors when running mysqldump, which I'd assumed indicated incompatibility, but were actually related to my app specifically.
They are backwards compatible, so you can use mysql-client 8 to dump mysql-server 5.5
to get a specific version docker is great
(sudo apt install docker) to install
docker run mysql:5.6 mysqldump
will run mysqldump though docker, and you can choose your version there easily enough

FreeBSD: upgrade MongoDB server from 2.6 to 3.0

Running MongoDB v2.6 Server on FreeBSD operating system, I am looking for a way to upgrade the MongoDB version to at least v3.0. According to MongoDB website, I need to replace the binaries but I am not able to find appropriate download binaries for FreeBSD there MongoDB download website. Alternatively I had hoped, I could upgrade the binaries using pkg package manager but I don't know which command to use to upgrade to a specific version. I am looking for something like:
pseudocode:
sudo pkg upgrade mongod v3.03
I've been crawling the web for days now to find a download link for Freebsd binaries for Version 3.0x or right upgrade command using pkg package manager.
Solution is: using the command "pkg install mongodb36-3.6.6_2" as suggested in the link by Valijon will first deinstall a previous version and then install v3.6 of MongoDB Server. Just what I was looking for.

Mongodb Version mismatch Issue 3.6 to 4.0 upgrade

I have installed the latest version of MongoDB i.e 4.0.10. I am using Ubuntu 18.04.
When i run mongod --version in putty command line i get version 4.0.10
But When i run query in Studio3T db.version(); i get version 3.6.3
I ran dpkg -l | grep mongo and got following output.
Please help me in identifying what i am doing wrong here.
Looks like you have two MongoDBs installed, judging from 3.6.3-0ubuntu1 installed by apt, and 4.0.10 versions there.
The page Install MongoDB Community Edition on Ubuntu stated:
The mongodb package provided by Ubuntu is not maintained by MongoDB Inc. and conflicts with the mongodb-org package. To check if Ubuntu’s mongodb package is installed on the system, run sudo apt list --installed | grep mongodb. You can use sudo apt remove mongodb and sudo apt purge mongodb to remove and purge the mongodb package before attempting this procedure.
The older 3.6.3 appears to be still running in port 27017, thus that was the one connected to by Studio3T.
To ensure a clean installation, it's better to do a clean install by:
Follow the instructions in Uninstall MongoDB Community Edition
Remove 3.6.3 using apt as per the instruction above
Reinstall using the procedure in Install MongoDB Community Edition on Ubuntu.
It's probably not required to uninstall/reinstall everything again, but you don't want to have conflicting leftover files that will create problems down the road.
If you need the data in the old 3.6.3, please do mongodump before uninstalling it. You can subsequently restore it later.

If my CentOS 7.2 box has vagrant 1.7.2, can I just run the 1.8.1 rpm to get vagrant 1.8.1?

I have a CentOS 7.2 laptop. I have VirtualBox 5.0.x installed on it. Out of the box, it appears that I have Vagrant 1.7.2. Apparently this doesn't support VirtualBox 5.0.x, but it appears that version 1.8.1 does. What is the proper way to get access to 1.8.1? There is an installation rpm for 1.8.1 that I've downloaded, I can run this with "rpm", but do I have to do anything else before I do that?
Use Software Collections to get Vagrant 1.8.1 on CentOS: Vagrant 1.8 by Software Collections (the linked page contains instructions on how to do that). That will give you a build tested by the CentOS project.
As a sidenote: If you downloaded a standalone RPM package (presumably directly from the Vagrant project) and wish to install it, do it using the yum package manager, not rpm -- yum takes care of dependencies.

Tryton Incompatible version of the server

I'm trying to connect Tryton to a postgres database. In the Tryton client profile, I used the following details:
Hostname : localhost
port : 8000
username : admin
Now everytime I put in the details above, the database labels show:
Incompatible version of the server
So I check out Tryton server and client version and I found out its:
tryton = 2.6.0
trytond = 2.0.1
Ok, now I know that the trytond is not the same as my tryton version.
I have searched the web many times to find a matching client and server version but failed.
Even in Ubuntu synaptic package manager, I can't find a real same version.
You must use the same two first version number. So you must use 2.6 series or 2.0 series.
On Ubuntu, last series packaged is 2.2.
Are you using pip? If not, then install it first. This is the best tool(in my knowledge) to install python packages.
To install tryton client using pip sudo pip install 'tryton>2.6,<2.7' and for tryton server sudo pip install 'trytond>2.6,<2.7'. This will install both tryton client and server of latest series 2.6. To install different version just change the version number in command.
All the best!
you can download the tryton and and corresponding trytond versions from http://downloads.tryton.org/2.6/