MySQL equivalent of PostgreSQL's dblink module?

空扰寡人 提交于 2019-12-01 21:28:45

Not exactly.

There is, however the FEDERATED storage engine (available since 5.0.3), which can be used in certain situations to emulate this behaviour. It is, (put very simply) a VIEW for a remote table.

There is an in-depth explanation, along with examples on its MySQL manual page(s).

You might want to look into MySQL Proxy. This doesn't match the architecture of dblink, but you can probably solve a similar set of problems that you would use dblink to solve.

No. This is not possible with MySQL. The closest you can come is to use replication to replicate the tables you need from the "remote" database down to the slave you are querying on. See the documentation for more details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!