[Snort-users] Problem with socket

Paul Schmehl pauls at ...6838...
Fri Apr 29 12:16:31 EDT 2005

--On Friday, April 29, 2005 11:58:58 PM +0400 slice <1unixoid at ...13292...> 

>> Ding!
>> Try starting it like this.
>> /usr/local/mysql/bin/mysqld_safe --with-user=mysql
>> --socket=/var/lib/mysql/mysql.sock
>  it`s very strange:
> unknown variable --with-user ?????? in mysql-logfile
> and the parametr doesn`t help, when i try login
> (/usr/local/mysql/bin/mysql -u root -p )he told me:
> can`t connect through /tmp/mysql.sock
*Something* is telling mysql to use /tmp/mysql.sock for the socket, even 
though you've specifically started it with  /var/lib/mysql/mysql.sock.

Is mysql running?

% ps auxw | grep mysqld

If it *is* running, paste the line from ps so we can see all the 
parameters.  Something like this should work:
% ps auxwwwwwwww | grep mysqld

Here's mine (on FreeBSD, and I obfuscated the hostname in the pid):

ps -auxwwwwwwww | grep mysqld
root      166  0.0  0.0   644  252 con- I    14Apr05   0:00.01 /bin/sh 
/usr/local/bin/safe_mysqld --user=mysql --datadir=/var/db/mysql 
mysql     221  0.0  8.3 283848 86964 con- S    14Apr05 449:46.09 
/usr/local/libexec/mysqld --basedir=/usr/local/ --datadir=/var/db/mysql 
--user=mysql --pid-file=/var/db/mysql/myhost.pid

}find / -name mysql.sock

I'm using the default socket location, and I haven't had any problems.

Paul Schmehl (pauls at ...6838...)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member

More information about the Snort-users mailing list