Zum Inhalt springen

Connect to MariaDB

Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen

After installing, open a shell of your choice and connect to your database. The mariadb command does not support the connection string format. You need the port, endpoint, database, username and the password of your instance to provide the necessary flags. You can look up all these parameters in the Credentials tab of your instance. You need to extract the port and the database from the connection string.

Terminal window
mariadb --host <ENDPOINT> --port <PORT> --user <USERNAME> --database <DATABASE> --password

When your console shows something like this, you are connected successfully:

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 585363
Server version: 10.11.12-MariaDB-log MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [mad30dc70]>

Press Control + D to close the connection and return to your command prompt.