Connecting to clickhouse db with mysql protocol #165
-
Hi, I'm trying to read from a clickhouse database and got this error
I'm running very simple queries like I'm not sure if this error is from clickhouse, or connectorx? My setup is also very simple. I spinned up a local clickhouse on my machine and enabled mysql port 9004 like described in this page, exposed the port, then did this
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @mxfwang , can you add |
Beta Was this translation helpful? Give feedback.
-
if with PDO, how to config? |
Beta Was this translation helpful? Give feedback.
Hi @mxfwang , can you add
protocol= text
inread_sql
function and try again? Clickhouse only support text protocol and we use binary protocol by default in ConnectorX. More info can be found here.