To understand MySQL's error messages in OS X

I am reading MySQL's manuals.

I run

. /usr/local/mysql/bin/mysql                                                                                                                            ~ 

I get

/usr/local/mysql/bin/mysql:1: command not found: ????^G
/usr/local/mysql/bin/mysql:2: permission denied: 
/usr/local/mysql/bin/mysql:3: parse error near `}'

I run

. /usr/local/mysql/bin/mysqladmin                                                                                                                         ~ 

I get

/usr/local/mysql/bin/mysqladmin:9: parse error near `)'

These error messages suggest me that my MySQL seems to be corrupted. I did not found by Google explanations for the error messages.

What do the messages really mean?


try running

/usr/local/mysql/bin/mysql    

[without the dot]

if you use "dot space" at the beginning file you provide path to will be interpreted as bash-script, but what you point is actual binary executable, not a script.

what you try is NOT the way to start mysql server, those are attempts to run mysql client.