Getting started with Memgraph
Get Memgraph up and running on your data by following these installation steps.
Memgraph bundles the database along with various analytical tools into distinct
Docker images. If you're new to Memgraph or you're in a developing stage, we
recommend using the
memgraph-platform image. Besides the database, it also
includes all the tools you might need to analyze your data, such as command-line
interface mgconsole, web interface Memgraph
Lab and a complete set of algorithms within a
With the Docker (opens in a new tab) running in the background, run the following command in the console:
docker run -p 7687:7687 -p 7444:7444 -p 3000:3000 --name memgraph memgraph/memgraph-platform
You can stop the instance with
docker stop memgraph and start it with
docker start memgraph commands.
Once you're ready to go to production you can choose to use the
Docker image that includes the database and the graph library, or run the
database only, using the
Other installation options are also available.
You can connect to the Memgraph instance using the command-line interface mgconsole by running the following command in a new terminal:
docker exec -it memgraph mgconsole
When the mgconsole starts, you can query the database:
C:\Users\Vlasta>docker exec -it memgraph mgconsole mgconsole 1.3 Connected to 'memgraph://127.0.0.1:7687' Type :help for shell usage Quit the shell by typing Ctrl-D(eof) or :quit memgraph>
Alternatievly, you can connect to Memgraph using the Memgraph Lab web
application available within the
memgraph-platform Docker image by visiting
To start using Memgraph in your application, use one of the following client libraries and follow their getting started guide.
You can migrate your data from an existing graph or SQL database using CSV or JSON files, and import data using queries within a CYPHERL file.
You can query Memgraph using Cypher query language, use algorithms available in Memgraph's MAGE library on your graph, and explore visualizations and query your data using Memgraph Lab.
Schedule a 30 min session with one of our engineers to discuss how Memgraph fits with your architecture. Our engineers are highly experienced in helping companies of all sizes to integrate and get the most out of Memgraph in their projects. Talk to us about data modeling, optimizing queries, defining infrastructure requirements or migrating from your existing graph database. No nonsense or sales pitch, just tech.