On Thu, May 24, 2007 at 10:01:40PM +0900, ASARI Takashi wrote:
> 2007/5/23, David R. Stites <[EMAIL PROTECTED]>:
> >
> > pal-174-168:/sw/var dstites$ sudo mysqld_safe &
> > [1] 1868
> >
> > pal-174-168:/sw/var dstites$ mysqladmin create test
> > 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 double checked that all the permissions were set correctly to 700.  At
> > first, it looked like mysqld started fine when I used sudo, however, when I
> > tried to create a test database, it looked like it was never started in the
> > first place.
> 
> Ah... Maybe "sudo -l && sudo mysqld_safe &" instead of just executing
> "sudo mysqld_safe &"?
> Perhaps you were being prompted your password by the background job.

Yes, I believe "sudo FOO &" backgrounds the sudo command itself, not
the command launched by sudo. May "sudo -s" to get a shell and then
"mysqld_safe &" from there.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to