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?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

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.

link|improve this answer
I get the error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) – Masi Jul 5 '09 at 9:54
1  
that is much better. do you have mysqld [ mysql server ] running ? – pQd Jul 5 '09 at 9:55
The other command seems to work without "." --- I do not understand how you can run a file without "." – Masi Jul 5 '09 at 9:56
@pQd: I do not have it running, since I have this problem: serverfault.com/questions/35859/… – Masi Jul 5 '09 at 9:57
1  
but what you try to run is mysql client [ /usr/local/mysql/bin/mysql ], mysql server is usually called mysqld or mysqld_safe. – pQd Jul 5 '09 at 9:57
show 4 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.