Reputation: 189
Hello I would like to ask:
How can I make a socket connection to a MySQL database (With out additional libraries) using only low level sockets so I can then send commands.
Thank you for any help
Edit is it also possible to connect over HTTP? (I wouldn't think that would make sense, but figured I would ask)
Upvotes: 2
Views: 1866
Reputation: 69012
Of course it's possible, you'll 'only' have to implement the MySQL Client/Server Protocol.
If you want to have a look at how this can be done (or if it's too much work to do it yourself), have a look at pymysql or myconnpy.
Upvotes: 2