package
0.0.0-20210427141028-73d29c6da78c
Repository: https://github.com/percona/go-mysql.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
GetSocket tries to detect and return path to the MySQL socket.
GetSocketFromNetstat will loop through list of open sockets and try to find one matching `mysql` word.
GetSocketFromProcessList will loop through the list of PIDs until it finds a process named 'mysqld' and the it will try to get the socket by querying the open network connections for that process.
GetSocketFromTCPConnection will try to get socket path by connecting to MySQL localhost TCP port.
GetSocketsFromPID returns currently open UNIX domain socket files by process identifier (PID).
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrNoSocket is returned when GetSocketFromProcessLists can't locate socket.