Jeff Spivack wrote:
Description:
I tried installing mySql on OS X 10.2.3, following the instructions at
http://www.entropy.ch/software/macosx/mysql/ . I wanted to set a
password for the MySQL root user , so I typed:
./bin/mysqladmin -u root password 'new-password' (with, of course, a
password in place of 'new password'
I got the following error:
./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock'
exists!
I figured the daemon wasn't yet running, so I tried to start it up with
\localhost:/usr/local/mysql] jspivack% cd . ; ./bin/safe_mysqld &
Why would you cd to the current directory?
and I got the following error messages:
[localhost:/usr/local/mysql] jspivack% touch:
/usr/local/mysql/data/localhost.err: Permission denied
chown: /usr/local/mysql/data/localhost.err: No such file or directory
Starting mysqld daemon with databases from /usr/local/mysql/data
./bin/safe_mysqld: /usr/local/mysql/data/localhost.err: Permission denied
./bin/safe_mysqld: /usr/local/mysql/data/localhost.err: Permission denied
tee: /usr/local/mysql/data/localhost.err: Permission denied
030117 16:19:58 mysqld ended
tee: /usr/local/mysql/data/localhost.err: Permission denied
I also tried
sudo ./bin/safe_mysqld --user=mysql &
that gave me a password prompt, but when i enter my administrator
password, I get a "command not found" error.
any idea what I'm doing wrong here??? thanks for the help...
sudo is asking for the system root password, not administrator password.
How-To-Repeat:
<code/input/activities to reproduce the problem (multiple lines)>
Fix:
<how to correct or work around the problem, if known (multiple
lines)>
Submitter-Id: <submitter ID>
Originator:
Organization:
<organization of PR author (multiple lines)>
MySQL support: [none | licence | email support | extended email
support ]
Synopsis: <synopsis of the problem (one line)>
Severity: <[ non-critical | serious | critical ] (one line)>
Priority: <[ low | medium | high ] (one line)>
Category: mysql
Class: support
Release: mysql-3.23.53-entropy.ch
(http://www.entropy.ch/software/macosx\
/mysql/)
Environment:
iBook 700, OS X 10.2.3
System: Darwin localhost 6.3 Darwin Kernel Version 6.3: Sat Dec 14
03:11:25 PST\
2002; root:xnu/xnu-344.23.obj~4/RELEASE_PPC Power Macintosh powerpc
Some paths: /usr/bin/perl
Compilation info: CC='gcc' CFLAGS='-DHAVE_BROKEN_REALPATH -lncurses'
CXX='g++\
' CXXFLAGS='' LDFLAGS=''
LIBC:
lrwxr-xr-x 1 root wheel 15 Dec 20 15:35 /usr/lib/libc.dylib ->
libSystem.dyl\
ib
Configure command: ./configure --prefix=/usr/local/mysql
--localstatedir=/usr/l\
ocal/mysql/data --libdir=/usr/local/mysql/lib
--includedir=/usr/local/mysql/inc\
lude --with-named-z-libs=/usr/local/libz.a --with-innodb
--with-server-suffix=-\
entropy.ch --with-comment=http://www.entropy.ch/software/macosx/mysql/
--with-m\
ysqld-user=mysql --enable-assembler 'CFLAGS=-DHAVE_BROKEN_REALPATH
-lncurses' '\
CFLAGS=-DHAVE_BROKEN_REALPATH -lncurses'
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php