You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems connecting to MySQL 5.7 on macOS, using version 0.1.6 (from LTS Haskell 12.26). I get:
ConnectionError {
errFunction = "connect",
errNumber = 2002,
errMessage = "Can't connect to MySQL server on 'localhost' (22)"
}
I have a mysqld running in a temporary folder, to which I can connect manually with mysql and ping it with mysqladmin. The parameters I'm using to connect:
I've tried variations of connectHost and connectPort without success. The mysql_real_connect docs suggest that "localhost" is appropriate for host when trying to connect via a Unix socket.
I'm using a binary distribution of MySQL 5.7 from Oracle. mysqld was launched with:
I can't see an obvious problem there. I can run an application which uses "localhost" to connect via a Unix socket on Ubuntu, so I think it must be a configuration or permission issue.
I'm having problems connecting to MySQL 5.7 on macOS, using version 0.1.6 (from LTS Haskell 12.26). I get:
I have a
mysqld
running in a temporary folder, to which I can connect manually withmysql
and ping it withmysqladmin
. The parameters I'm using to connect:I've tried variations of
connectHost
andconnectPort
without success. Themysql_real_connect
docs suggest that "localhost" is appropriate for host when trying to connect via a Unix socket.I'm using a binary distribution of MySQL 5.7 from Oracle.
mysqld
was launched with:Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: