Downloading data remotely from mariadb Mysql server

Hi! I have a Mariadb server running on a remote raspi with a Sixfab 4G&LTE hat. The raspi is functioning as a data aquisition module, and pushing all collected data to an onboard Mariadb Mysql server. Right now I can use the command line interface to ssh in to the pi and check that everything is working, but is there a way for me to connect directly to the pi and download the Mysql data to a database on my computer?

Thanks!