Password

hello, please i have just installed my sql and my sql workbench last week, so while i was learning through php with my sql essential, i got to the my sql bit,
and i put in my password using the terminal interface as required

mgltd$ mysql -u --password=password
but it gave me
-bash: mysql: command not found
so am thinking
is it that i have to work using the mysqlworkbench or ?am i using an old commandline?

It sounds like you need the full path to mysql:
/usr/bin/msyql -u --password=password (or wherever it is installed)

ok, i will check it out, and where it is installed thanks

i have tried it but it says no such file directory

-bash: /usr/bin/msyql: No such file or directory
Muyideen-Animashauns-MacBook-Pro:bin mgltd$ cd /usr/bin/msyql -u --password=password
-bash: cd: /usr/bin/msyql: No such file or directory
Muyideen-Animashauns-MacBook-Pro:bin mgltd$ cd /usr/local/mysql/bin/mysql -u --password=password
-bash: cd: /usr/local/mysql/bin/mysql: Not a directory
Muyideen-Animashauns-MacBook-Pro:bin mgltd$

just tried this and it worked

./mysql -u root --password=password