Connect using MariaDB Client
MariaDB Client is available for all major operating systems.
Installation
Installation of MariaDB Client varies by operating system.
macOS
Install Homebrew if you don't have it already:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install MariaDB Client:
brew install mariadb
Verify the installation:
mariadb --version
CentOS / RHEL
Configure YUM package repositories:
sudo yum install wget wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup echo "30d2a05509d1c129dd7dd8430507e6a7729a4854ea10c9dcf6be88964f3fdc25 mariadb_repo_setup" \ | sha256sum -c - chmod +x mariadb_repo_setup sudo ./mariadb_repo_setup --mariadb-server-version="mariadb-10.11"
Install MariaDB Client and package dependencies:
sudo yum install MariaDB-client
Debian / Ubuntu
Configure APT package repositories:
sudo apt install wget wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup echo "30d2a05509d1c129dd7dd8430507e6a7729a4854ea10c9dcf6be88964f3fdc25 mariadb_repo_setup" \ | sha256sum -c - chmod +x mariadb_repo_setup sudo ./mariadb_repo_setup --mariadb-server-version="mariadb-10.11" sudo apt update
Install MariaDB Client and package dependencies:
sudo apt install mariadb-client
SLES
Configure ZYpp package repositories:
sudo zypper install wget wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup echo "30d2a05509d1c129dd7dd8430507e6a7729a4854ea10c9dcf6be88964f3fdc25 mariadb_repo_setup" \ | sha256sum -c - chmod +x mariadb_repo_setup sudo ./mariadb_repo_setup --mariadb-server-version="mariadb-10.6"
Install MariaDB Client and package dependencies:
sudo zypper install MariaDB-client
Windows
Access MariaDB Downloads for MariaDB Community Server.
In the "Version" dropdown, select the version you want to download.
In the "OS" dropdown, select "MS Windows (64-bit)".
Click the "Download" button to download the MSI package.
When the MSI package finishes downloading, run it.
On the first screen, click "Next" to start the Setup Wizard.
On the second screen, click the license agreement checkbox, and then click "Next".
On the third screen, select the components you want to install. If you only want the standard MariaDB Client tools:
Deselect "Database instance".
Deselect "Backup utilities".
Deselect "Development Components".
Deselect "Third party tools".
When only "Client programs" is selected, click "Next".
On the next screen, click "Install".
When the installation process completes, click "Finish".
2. Connecting
Linux
Determine the connection parameters for your MariaDB Cloud service.
Use your connection parameters in the following command line:
mariadb --host dbpwf03798702.sysp0000.db1.skysql.com --port 3306 \ --user dbpwf03798702 -p --ssl-verify-server-cert
Replace 'dbpwf03798702.sysp0000.db1.skysql.com' with the Fully Qualified Domain Name of your service.
You can use 3307 for the port if running with Replicas. This is the read-only port of your service.
Replace the user name with the one for your service.
After the command is executed, you will be prompted for the password of your database user account. Enter the default password for your default user, the password you set for the default user, or the password for the database user you created.
Windows
Fix your executable search path.
On Windows, MariaDB Client is not typically found in the executable search path by default. You must find its installation path, and add that path to the executable search path:
SET "PATH=C:\Program Files\MariaDB 10.6\bin;%PATH%"
Use your connection parameters in the following command line:
mariadb --host dbpwf03798702.sysp0000.db1.skysql.com --port 3306 \ --user dbpwf03798702 -p --ssl-verify-server-cert
Replace 'dbpwf03798702.sysp0000.db1.skysql.com' with the Fully Qualified Domain Name of your service.
You can use 3307 for the port if running with Replicas. This is the read-only port of your service.
Replace the user name with the one for your service.
After the command is executed, you will be prompted for the password of your database user account. Enter the default password for your default user, the password you set for the default user, or the password for the database user you created.
Last updated
Was this helpful?