Conecta a una base de datos a través de un socket unix
Por defecto, las conexiones se hacen usando un fichero socket Unix.
By default, connections are made using the Unix socket file.
apuntando a la ruta del archivo de socket Unix.
environment variable to the path of the Unix socket file.
Si el valor del host no está establecido o está vacío, la biblioteca cliente usará una conexión de socket Unix sobre localhost.
If the host value is unset or empty, then the client library will default to a Unix socket connection on localhost.
El lugar por defecto del archivo de socket Unix que el servidor utiliza para comunicarse con los clientes locales es/tmp/mysql.sock.
The default location for the Unix socket file that the server uses for communication with local clients is/tmp/mysql.sock.
Si se da una ruta, se abrirá la toma como un socket Unix a esa ruta.
If a path is given, the socket will be opened as a unix socket to that path.
El proceso «hijo» que se sigue ejecutando como root va a bindearse al socket UNIX y quedarse a la escucha de nuevas conexiones.
The "child" process that is still running as root is going to be bound to the UNIX socket and listening for new connections.
Se utiliza un archivo de socket Unix siempre que no se especifique un nombre de servidor o si se especifica el nombre de servidor especial localhost.
A Unix socket file is used if you don't specify a host name or if you specify the special host name localhost.
Si el socket no está establecido o está vacío, y es solicitada una conexión de socket Unix, se intentará una conexiónal socket predeterminado de/tmp/mysql.sock.
If socket is unset or empty, and a Unix socket connection is requested, then a connection to the default socket on/tmp/mysql.sock is attempted.
Como alternativa, la opción de ruta se puede utilizar para especificar un socket UNIX. 5
Alternatively, the path option can be used to specify a UNIX socket. 5
Si el socket no está orientado a conexión, name será establecido a la dirección del protocolo de internet del host remoto o a la ruta del socket UNIX.
If the socket is not connection-oriented, name will be set to the internet protocol address of the remote host or the path to the UNIX socket.
Si ejecuta mysgladmin shutdown al conectar a un servidor local usando ficheros socket Unix, mysgladmin espera hasta que el fichero con el ID del proceso del servidor se haya borrado, para asegurar que el servidor se ha parado correctamente.
If you execute mysqladmin shutdown when connecting to a local server using a Unix socket file, mysqladmin waits until the server's process ID file has been removed, to ensure that the server has stopped properly.
Si tiene un servidor MySQL escuchando en un puerto dado, puede usar el siguiente comando para encontrar que parámetros está usando para algunas importantes variables de configuración, incluyendo el directorio base y el nombre del fichero socket Unix
If you have a MySQL server listening on a given port number, you can use the following command to find out what operating parameters it is using for several important configurable variables, including the base directory and Unix socket file name