Page 1 of 1

OS 10.2 .../usr/local/mysql/bin ...command not found

Posted: Sat Aug 09, 2003 9:49 am
by mgm_03
I don't know what happened....

Last week I had mysql running (4.01) on OS 10.2. I had the "Welcome to MyQL Monitor" message and a mysql> prompt.

I downloaded phpMyadmin and am trying to configure it properly (or test if it is).

Now, when I get into my Terminal and go to:

cd /user/local/mysql/bin

and enter: sudo mysqld_safe, all I get is "command not found"

sudo mysqladmin ...pls enter password....I enter password and get

"sudo: mysqladmin : command not found"

I try:
sudo mysql -u root mysql ....pls enter password... command not found.

Any ideas as to what I am doing wrong?
Did I screw up my maching?

Mark

Posted: Sat Aug 09, 2003 11:03 am
by Stoker
perhaps add a ./ in front of the command? such as sudo ./mysqld_safe
do a ls -l in that directory and see what executables exist there..

there is no need to use sudo when running mysqladmin or the mysql command line interface, you only need it to start mysql..

Posted: Sat Aug 09, 2003 4:23 pm
by mgm_03
Thanks ...that helped !

Now when I enter sudo ./mysqld_safe, I get

Starting mysqld daemon with databases from /usr/local/mysql/data
030809 11:06:53 mysqld ended

...what does this mean?

Posted: Sat Aug 09, 2003 6:27 pm
by Stoker
Likely that it failed to start, you probably want to take a look in the logs, I really have no idea where MacOS-X and/or mysql-for-macOs logs such, but it could be in /var/log/syslog or /var/log/messages

after trying to start mysql, check these logs with something like
sudo tail /var/log/syslog