编译安装mysql_fdw_greenplum 6.7编译安装插件mysql_fdw

wget https://codeload.github.com/gaos1/mysql_fdw/zip/master

mv master mysql_fdw-master.zip

unzip mysql_fdw-master.zip

cd /opt/gpdb-6.7.0/contrib/

mv /opt/mysql_fdw-master .

cd /opt/gpdb-6.7.0/contrib/mysql_fdw-master

To build on POSIX-compliant systems you need to ensure the pg_config executable is in your path when you run make. This executable is typically in your PostgreSQL installation's bin directory. For example:

$ export PATH=/usr/local/greenplum-db-6.7.0/bin/:$PATH

The mysql_config must also be in the path, it resides in the MySQL bin directory.

$ export PATH=/usr/local/mysql/bin/:$PATH

Compile the code using make.

$ make USE_PGXS=1

Finally install the foreign data wrapper.

$ make USE_PGXS=1 install

[root@node1 mysql_fdw-master]# make USE_PGXS=1 install

/usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/lib/postgresql'

/usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/share/postgresql/extension'

/usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/share/postgresql/extension'

/usr/bin/install -c -m 755 mysql_fdw.so '/usr/local/greenplum-db-6.7.0/lib/postgresql/mysql_fdw.so'

/usr/bin/install -c -m 644 mysql_fdw.control '/usr/local/greenplum-db-6.7.0/share/postgresql/extension/'

/usr/bin/install -c -m 644 mysql_fdw--1.0.sql mysql_fdw--1.1.sql mysql_fdw--1.0--1.1.sql '/usr/local/greenplum-db-6.7.0/share/postgresql/extension/'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值