The file INSTALL-SOURCE in the mysql distribution contains the
following (line 960):
| * If you want your sockets located somewhere other than the default
| location (normally `/tmp' or `/var/run'), use a `configure' command
| like this:
| shell> ./configure --with-unix-socket-path=/path/to/socket/dir
| `/path/to/socket/dir' must be an absolute pathname.
This makes it sound like the argument to --with-unix-socket-path
should be a directory (containing several sockets). But that's not the
case. The argument should give the file name. safe_mysqld removes (or
attempts to) whatever you pass to configure with this option.
Suggested new wording:
* If you are using UNIX and you want the MySQL socket located somewhere
other than the default location (normally in the directory `/tmp' or
`/var/run'), use a `configure' command like this:
shell> ./configure --with-unix-socket-path=/path/to/socket/file
`/path/to/socket/file' must be an absolute path.