Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 wordpress 引擎中从另一个数据库中查询帖子。例如,现在我安装了 wordpress,但我无法集成旧站点数据库。旧站点不在 wordpress 中,但我认为这不是问题,因为在 phpmyadmin 中更改旧数据库的结构对我来说没有问题。我认为在这种情况下最好的方法 - 在自定义 wordpress 页面模板上使用自定义查询从另一个数据库查询。有任何想法吗 ?请教我方法。
在 MySQL 上做跨数据库查询是没有问题的。
SELECT * FROM [database_name].[table_name];