Show the standard format with localhost as the primary example,
which matches how other MySQL libraries (Prisma, mysql2) document
socket connections. The format without hostname is still supported
but shown as an alternative.
The hostname is ignored when a socket parameter is provided, but
using localhost makes the URL format valid and more standard.