A useful tool for remotely accessing the databases on your shared, VPS, or Dedicated hosting account is MySQL Workbench.
MySQL Workbench is a complimentary application that allows you to connect to your server databases from your personal computer.
You can download MySQL Workbench for free at the following link:
https://dev.mysql.com/downloads/workbench/
Note: Choose the appropriate version for your terminal's operating system.
After downloading the installer and completing the installation, search for the MySQL program and click on MySQL Workbench 8.0 CE.
As shown in the screenshot below, click on Database > Connect to Database, and enter the details to connect to the database:
Connection method: Standard (TCP/IP)
Hostname: *The hostname of the DB server*
Port: 3306
Username: *The DB assigned username*
Password: *The DB assigned username password*