Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Database support on Cloud 9

Tags:

cloud9-ide

Does Cloud 9 support any databases? Can my app talk to a database? MongoDB, Sqlite... anything? If so, how do i set it up? I am willing to work with any database. I just want to persist some of my info into a database.

like image 200
mithun_daa Avatar asked Nov 16 '11 21:11

mithun_daa


People also ask

What is Cloud9 database?

AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It includes a code editor, debugger, and terminal.

Is SQL Server available on cloud?

SQL Server running on Google Cloud works with all of your familiar tools like SSMS and Visual Studio. Connect your existing workloads to the best of what Google Cloud has to offer.

Does MySQL have cloud database?

Cloud SQL for MySQL is a fully-managed database service that helps you set up, maintain, manage, and administer your MySQL relational databases on Google Cloud Platform. For information specific to MySQL, see the MySQL documentation or learn more about Cloud SQL for MySQL.


2 Answers

These days the workspaces are just Ubuntu VMs, so just follow the instructions on installing your favourite database on Ubuntu.

E.g.

  • Postgres: sudo apt-get install postgresql postgresql-contrib
  • MongoDB:

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-org

  • Sqlite: sudo apt-get install sqlite3 libsqlite3-dev

like image 200
Jan Jongboom Avatar answered Oct 07 '22 23:10

Jan Jongboom


Cloud9 now allows you to run MongoDB from within Cloud9. Here are instructions on how to set it up in your workspace:

https://docs.c9.io/setting_up_mongodb.html

like image 43
Greg Avatar answered Oct 07 '22 23:10

Greg