When talking about databases, in general, we refer to two major families: RDBMS (**R**elational**D**ata**b**ase**M**anagement**S**ystem), which use as user and application program interface a language named**S**tructured**Q**uery**L**anguage (or SQL) and non-relational database management systems, or**NoSQL**databases.
Between the two models there is a huge difference in the way they consider (and store) data.
#### Relational Database Management Systems
In the relational model (like MySQL, or its fork, MariaDB), a database is a set of tables, each containing one or more data categories organized in columns. Each row of the DB contains a unique instance of data for categories defined by columns.
Just as an example, consider a table containing customers. Each row correspond to a customer, with columns for name, address, and every required information.
Another table could contain an order, with product, customer, date and everything else. A user of this DB can obtain a view that fits its needs, for example a report about customers that bought products in a specific range of prices.
#### NoSQL Database Management Systems
In the NoSQL (or Not only SQL) database management systems, databases are designed implementing different “formats” for data, like a document, key-value, graph and others. The database systems realized with this paradigm are built especially for large-scale database clusters, and huge web applications. Today, NoSQL databases are used by major companies like Google and Amazon.
##### Document databases
Document databases store data in document format. The usage of this kind of DBs is usually raised with JavaScript and JSON, however, XML and other formats are accepted. An example is MongoDB.
##### Key-value databases
This is a simple model pairing a unique key with a value. These systems are performant and highly scalable for caching. Examples include BerkeleyDB and MemcacheDB.
##### Graph databases
As the name predicts, these databases store data using graph models, meaning that data is organized as nodes and interconnections between them. This is a flexible model which can evolve over time and use. These systems are applied where there is the necessity of mapping relationships.
Examples are IBM Graphs and Neo4j**and OrientDB**.
### OrientDB
[OrientDB][3], as stated by the company behind it, is a multi-model NoSQL Database Management System that “ _combines the power of graphs with documents, key/value, reactive, object-oriented and geospatial models into one**scalable, high-performance operational database**“._
OrientDB has also support for SQL, with extensions to manipulate trees and graphs.
### Goals
This tutorial explains how to install and configure OrientDB Community on a server running Ubuntu 16.04.
### Download OrientDB
On an up to date server, download the latest version of OrientDB by executing the following command:
And that’s all! OrientDB Community is installed and correctly running.
### Conclusion
In this tutorial we have seen a brief comparison between RDBMS and NoSQL DBMS. We have also installed and completed a basic configuration of OrientDB Community server-side.
This is the first step for deploying a full OrientDB infrastructure, ready for managing large-scale systems data.