mysql procy pool by golang, select query and use HTTP return data
- golang connect mysql, connect pool, HTTP get data,use POST for sql query
- support postgre database
- support many program language (just use POST query)
- write, read separate
- deal SQL inject (now use your client language, custom by yourself)
- support HTTPS
- distributed HTTP server
- support log file
cd project_path
go build
mv golang_mysql_proxy_pool mpp
./mpp
if you want to run as daemon, you can do like this(for linux):
nohub ./mpp > mpp.log 2>&1 &
that will output the log info to the file mpp.log, more info just man nohub
the client for PHP in the folder ./example/mpp_cls.php, the sample code for every function of MPP client, please check it
WIN7, go version go1.4.2 windows/386, PHP 5.6, MYSQL5.6, 10000 mysql rows
example folder
dont use MPP php file, php no_use_mpp.php -----Use time: 1.2660720348358-------
use MPP php file, php use_mpp.php -----Use time: 0.37302088737488-------
[more contact82049406@qq.com]