[Kea-users] Database & no socket option for config?
Peter Davies
peterd at isc.org
Wed Oct 28 11:09:55 UTC 2026
Hi Listy,
If you define your database with "host": "localhost", then Kea
should connect
through the default MySQL unix socket:
The connection to MySQL databases are made with a call to the MySQL C
client
library API function mysql_real_connect() in
src/lib/mysql/mysql_connection.cc
According to the MySQL documentation:
https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-connect.html
---PASTE--
The value of host may be either a host name or an IP address. The client
attempts to connect as follows:
If host is NULL or the string "localhost", a connection to the local
host is assumed:
On Windows, the client connects using a shared-memory connection, if the
server has shared-memory connections enabled.
On Unix, the client connects using a Unix socket file. The unix_socket
argument or the MYSQL_UNIX_PORT environment variable may be used to
specify the socket name.
---PASTE---
Kind Regards Peter
--
Peter Davies
Support Engineer
Internet Systems Corporation
More information about the Kea-users
mailing list