Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pages/custom-query-modules/python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ It is possible to install Python libraries that are not already included with
Memgraph installation. For example, to install `pandas` with Memgraph running
inside a Docker container, run the following command in the terminal:

```console

```
docker exec -i -u root <container_id> bash -c "apt install -y python3-pip &&
pip install pandas"
```
Expand Down
12 changes: 6 additions & 6 deletions pages/data-migration/cypherl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ the CYPHERL file.
2. Copy the `queries.cypherl` [to your Docker container](/getting-started/first-steps-with-docker#copy-files-from-and-to-a-docker-container).
3. Run the following command

```console
```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
```


For more information about `mgconsole` options run:

```console
```
docker exec -i CONTAINER_ID mgconsole --help
```

Expand All @@ -73,13 +73,13 @@ the CYPHERL file.
You can import queries saved in e.g. `queries.cypherl` by issuing the following
shell command:

```plaintext
```
mgconsole < queries.cypherl
```

For more information about `mgconsole` options run:

```console
```
mgconsole --help
```
</Tabs.Tab>
Expand Down Expand Up @@ -141,7 +141,7 @@ relationships between these nodes.
Running mgconsole in a non-interactive mode and importing data saved in a
CYPHERL file:

```console
```
mgconsole < queries.cypherl
```

Expand Down Expand Up @@ -209,7 +209,7 @@ nodes and relationships in one file.
Running mgconsole in a non-interactive mode and importing data saved in a
CYPHERL file:

```console
```
mgconsole < queries.cypherl
```

Expand Down
6 changes: 3 additions & 3 deletions pages/data-migration/migrate-memgraph-platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ Memgraph MAGE instance.
2. Copy the `queries.cypherl` [to your Docker container](/getting-started/first-steps-with-docker#copy-files-from-and-to-a-docker-container).
3. Run the following command:

```console
```
docker exec -i CONTAINER_ID mgconsole < queries.cypherl
```

For more information about `mgconsole` options run:

```console
```
docker exec -i CONTAINER_ID mgconsole --help
```

Expand All @@ -80,7 +80,7 @@ Memgraph MAGE instance.

For more information about `mgconsole` options run:

```console
```
mgconsole --help
```
</Tabs.Tab>
Expand Down
6 changes: 3 additions & 3 deletions pages/data-visualization/install-and-connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ following the instructions.

If you downloaded Memgraph Lab on Linux, you can execute:

```console
```
sudo dpkg -i MemgraphLab-x.x.x.deb
```

Expand Down Expand Up @@ -152,7 +152,7 @@ You should get the following result:

Run the Memgraph Lab Docker image using the following command:

```console
```
docker run -d -p 3000:3000 --name lab memgraph/lab
```

Expand All @@ -172,7 +172,7 @@ variable differs based on the operating system:
`QUICK_CONNECT_MG_HOST` when running Lab on Mac or Windows to enable
connection to Memgraph running on the host:

```console
```
docker run -d -p 3000:3000 -e QUICK_CONNECT_MG_HOST=host.docker.internal --name lab memgraph/lab
```

Expand Down
10 changes: 5 additions & 5 deletions pages/database-management/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ native **Linux**.
Open a new terminal and find the `CONTAINER ID` of the Memgraph Docker container
using the following command:

```console
```
docker ps
```

Expand All @@ -88,7 +88,7 @@ native **Linux**.

For example, if you want to use `vim` run:

```console
```
apt-get update && apt-get install -y vim
```

Expand Down Expand Up @@ -186,7 +186,7 @@ native **Linux**.
Open a new terminal and find the `CONTAINER ID` of the Memgraph Docker
container using the following command:

```console
```
docker ps
```

Expand All @@ -202,7 +202,7 @@ native **Linux**.

For example, if you want to use `vim` run:

```console
```
apt-get update && apt-get install -y vim
```

Expand Down Expand Up @@ -254,7 +254,7 @@ native **Linux**.
Open a new terminal and find the `CONTAINER_ID` of the Memgraph Docker
container using the following command:

```console
```
docker ps -a
```

Expand Down
4 changes: 2 additions & 2 deletions pages/database-management/server-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ please see the [information about monitoring via HTTP server](/database-manageme
SHOW METRICS INFO;
```

```console copy=false
```copy=false
+---------------------------------------+---------------+-------------+----------+
| name | type | metric type | value |
+---------------------------------------+---------------+-------------+----------+
Expand Down Expand Up @@ -166,7 +166,7 @@ Running this query will provide information about currently logged-in Memgraph u
SHOW ACTIVE USERS INFO;
```

```console copy=false
```copy=false
| username | session uuid | login timestamp |
|----------|----------------------------------------|-----------------------|
| test | "550e8400-e29b-41d4-a716-446655440000" | "2024-08-03 18:53:00" |
Expand Down
2 changes: 1 addition & 1 deletion pages/fundamentals/data-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ For example:
RETURN {key: 'Value', listKey: [{inner: 'Map1'}, {inner: 'Map2'}]}
```

```console copy=false
```copy=false
┌─────────────────────────────────────────────────────────────┐
│ {key: 'Value', listKey: [{inner: 'Map1'}, {inner: 'Map2'}]} │
├─────────────────────────────────────────────────────────────┤
Expand Down
2 changes: 1 addition & 1 deletion pages/fundamentals/indexes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a match.
This is how [the query plan](/querying/query-plan) looks when there is
no index on the data:

```console copy=false
```copy=false
memgraph> EXPLAIN MATCH (n:Person {prop: 1}) RETURN n;
+-----------------------------------+
| QUERY PLAN |
Expand Down
2 changes: 1 addition & 1 deletion pages/fundamentals/storage-memory-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ limit:
SHOW STORAGE INFO;
```

```console copy=false
```copy=false
+--------------------------------+--------------------------------+
| storage info | value |
+--------------------------------+--------------------------------+
Expand Down
10 changes: 5 additions & 5 deletions pages/fundamentals/transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ property in order to check the results of a
[max_flow](/advanced-algorithms/available-algorithms/max_flow) algorithm, then
rollback the change as this query was a part of an what-if analysis:

```console
```cypher
BEGIN;

MATCH (e:E)-[r:CONNECTED_TO]->(f:F)
Expand Down Expand Up @@ -90,7 +90,7 @@ To get information about running transaction execute the following query:
```cypher
SHOW TRANSACTIONS;
```
```console copy=false
```copy=false

memgraph> SHOW TRANSACTIONS;
+---------------+-----------------------------+-------------------------------------------+----------------+
Expand Down Expand Up @@ -216,7 +216,7 @@ Managing transactions is done by establishing a new connection to the database.
The output of the `SHOW TRANSACTIONS` command shows that a query is
currently being run as part of the transaction ID "9223372036854794885".

```console copy=false
```copy=false

memgraph> SHOW TRANSACTIONS;
+---------------+-----------------------------+-------------------------------------------+----------------+
Expand All @@ -235,7 +235,7 @@ TERMINATE TRANSACTIONS "9223372036854794885";

Upon the transaction termination, the following confirmation will appear:

```console copy=false
```copy=false
memgraph> TERMINATE TRANSACTIONS "9223372036854794885";
+-----------------------+-----------------------+
| transaction_id | killed |
Expand All @@ -247,7 +247,7 @@ memgraph> TERMINATE TRANSACTIONS "9223372036854794885";

The following message will appear in the session in which the infinite query was being run:

```console copy=false
```copy=false
memgraph> CALL infinite.get() YIELD * RETURN *;
Client received exception: Transactions was asked to abort either because it was executing longer than time
specified or another user asked to abort it.
Expand Down
4 changes: 2 additions & 2 deletions pages/getting-started/first-steps-with-docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ docker ps

You should get an output similar to this:

```console
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d44f049fef87 memgraph/memgraph-mage "/usr/lib/memgraph/m…" 8 seconds ago Up 6 seconds 0.0.0.0:7444->7444/tcp, 0.0.0.0:7687->7687/tcp musing_pasteur
```
Expand All @@ -477,7 +477,7 @@ ID](#how-to-retrieve-a-docker-container-id) or use its [name](#container-name).

Then run the following command if the container ID is `9397623cd87e`.

```console
```
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 9397623cd87e
```

Expand Down
18 changes: 9 additions & 9 deletions pages/getting-started/install-memgraph/amazon-linux.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ links](/getting-started/install-memgraph/direct-download-links) page.
After downloading the Memgraph RPM package, you can install it by issuing the
following command:

```console
```
sudo yum install ./memgraph-2.22.0_1-1.x86_64.rpm
```

Expand All @@ -62,30 +62,30 @@ If you run into any troubles while installing Memgraph, contact us on
After successful installation, Memgraph can be started as a service using the
following command:

```console
```
sudo systemctl start memgraph
```
To verify that Memgraph is running, run the following command:

```console
```
journalctl --unit memgraph
```

If successful, you should receive an output similar to the following:

```console
```
You are running Memgraph vX.X.X
```

If you want the Memgraph database instance to start automatically on each startup, run the
following command:

```console
```
systemctl enable memgraph
```

You can also check the status of the Memgraph database instance by running:
```console
```
systemctl status memgraph
```

Expand All @@ -94,7 +94,7 @@ systemctl status memgraph
When you start a Memgraph instance, you may see the following list of notes in
your terminal:

```console
```
You are running Memgraph v1.4.0-community

NOTE: Please install networkx to be able to use graph_analyzer module. Using Python:
Expand Down Expand Up @@ -143,15 +143,15 @@ Lab](/data-visualization).

To shut down the Memgraph server, issue the following command:

```console
```
systemctl stop memgraph
```

## Start Memgraph

Memgraph can be started as a service using the following command:

```console
```
systemctl start memgraph
```

Expand Down
Loading