Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql *server* protocol implementation for PHP

there are already some applications available which "understand" the mysql protocol and to which it's possible to connect using a mysql client -- for example: you can connect to the sphinx search engine using the (an) mysql client, mysql-proxy understands the mysql-protocol, too. etc.

now i wonder if there is an implementation available in/for PHP so you could connect to some server-application implemented in PHP using the mysql client? i am looking for some PHP library (or extension) which implements the mysql protocol.

thanks, harald

like image 413
aurora Avatar asked Nov 15 '22 13:11

aurora


1 Answers

I'm not aware of an existing pure php implementation of a mysql server. I expect it would be slower than a C/C++ counterpart. Additionally, php has always been annoying to run as a daemon.

However, should you wish to implement a server, you may wish to look at http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol. It defines the protocol for client-server communications.

like image 134
Alistair Evans Avatar answered Dec 06 '22 21:12

Alistair Evans