Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
mgm_03
Forum Newbie
Posts: 20 Joined: Thu Aug 07, 2003 3:49 pm
Post
by mgm_03 » Sat Aug 09, 2003 9:49 am
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
Stoker
Forum Regular
Posts: 782 Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:
Post
by Stoker » Sat Aug 09, 2003 11:03 am
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..
mgm_03
Forum Newbie
Posts: 20 Joined: Thu Aug 07, 2003 3:49 pm
Post
by mgm_03 » Sat Aug 09, 2003 4:23 pm
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?
Stoker
Forum Regular
Posts: 782 Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:
Post
by Stoker » Sat Aug 09, 2003 6:27 pm
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