mysql connect to the remote database

I want to modify the data in the database of my website and I thought I could do it from the command line but it still fails.
For example:-
website is
the database is mydb
port 22

mysql -u myweb -hmyweb.mysql -P22 -Dmydb

Presumably, I just need to understand these three terms well and it should work