Closed danvergara closed 1 year ago
This PR adds a new way to connect to MySQL through Unix Sockets. Therefore the --socket flag was added.
Unix Sockets
--socket
# URL option $ dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8" # Socket flag $ dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
Fixes #125
Please delete options that are not relevant.
Followed this guide to install MySQL/MariaDB on my local system.
Inspected the /etc/my.cnf.d/community-mysql-server.cnf config file to see where the socket file was.
/etc/my.cnf.d/community-mysql-server.cnf
[mysqld] socket=/var/lib/mysql/mysql.sock
Then, I managed to connect to MySQL through that socket file as expected.
Description
This PR adds a new way to connect to MySQL through
Unix Sockets
. Therefore the--socket
flag was added.Fixes #125
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Followed this guide to install MySQL/MariaDB on my local system.
Inspected the
/etc/my.cnf.d/community-mysql-server.cnf
config file to see where the socket file was.Then, I managed to connect to MySQL through that socket file as expected.
Checklist: