Report this

What is the reason for this report?

Can I install both MongoDB and MySql on the same server instance?

Posted on February 3, 2015
ges

By ges

I have a single server with Linux, Nginx, MySql, and PHP currently installed. It works great and I have no problems with that stack, but I’m interested in putting a NodeJS app that will use MongoDB on the same server with it. I know I’d have to install NodeJS and MongoDB in order to do this, but I’m curious if this is even possible? And if it is possible, should I do it? For reference, none of the sites on my server are doing anything really intense. All of the MySql-driven sites are WordPress, and this new NodeJS site would be a simple CMS type of site. Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes, you can. They system doesn’t care if you have 1, 2, or a hundred database servers. It just cares that you don’t try to run more than one on a port (3306 for MySQL, for example).

You can even run 2 or more instances of MySQL on the same server – one per port.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.