一:安装MySql-Http-Udf
1)下载软件
wget
http://mysql-udf-http.googlecode.com/files/mysql-udf-http-1.0.tar.gz
2)解压软件
tar zxvf
mysql-udf-http-1.0.tar.gz
3)编译安装软件
cd
mysql-udf-http-1.0/
./configure --prefix=/app/mysql
--with-mysql=/app/mysql/bin/mysql_config
make
&& make install
4)配置http-udf
cd
/app/mysql/lib/plugin
ln -s
/app/mysql/lib/mysql/plugin/mysql-udf-http.so.0.0.0
mysql-udf-http.so
5)配置MySql,创建http-udf函数
create
function http_get returns string soname 'mysql-udf-http.so';
create
function http_post returns string soname 'mysql-udf-http.so';
create
function http_put returns string soname 'mysql-udf-http.so';
create
function http_delete returns string soname