Abcd Efg
Abcd Efg

Reputation: 2146

Interacting with mysql through sockets

I was wondering if there is a way to use mysql server through sockets. What I want is connecting running queries and getting results by making socket connections and sending packets. Does anyone know how can I interact with mysql this way?

Regards

Upvotes: 0

Views: 101

Answers (1)

Corbin
Corbin

Reputation: 33437

Almost every language has a MySQL client, so I'm not sure why you want to do this.

But, you would basically have to reimplement the client library. The protocol is by no means simple: http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol.

You could perhaps write basic functionality, but once you get into all the features and corners of the protocol, it would be a project tremendous in scope (with no purpose).

Upvotes: 1

Related Questions