I have been using workbench to log in to the company's mysql in windows, and I want to use linux to access the company's database. After a while, I found that a very simple command can be achieved:
mysql -h host地址 -u 用户名 -p
Of course, mysql must be installed on the system first. Just use the mysql client here.