Yeah, I have been using Querious for many years. You could either use Socket or TCP/IP to connect. There are a few more steps involved with TCP/IP. You have to create a user and grant access and find the port number for the site. The easiest way is just to use the Socket path for the site and the correct database credentials. Please see the screenshots below.
Using TCP/IP to connect to Local MySQL databases:
mysql -e "CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'root'; GRANT ALL ON *.* TO 'root'@'127.0.0.1';"
mysql -e "SHOW VARIABLES WHERE Variable_name = 'port';"