Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Mariadb - How to connect

Install only the client

apt install mariadb-client

Bash console

export MYSQL_HOST='your_mysql_host'
export MYSQL_USER='your_username'
export MYSQL_PASSWORD='your_password'
export MYSQL_DB='your_database'

mysql

Defaults file

[client]
user=foo
password=P@55w0rd