简体   繁体   English

如何将Codeigniter数据库的数据与Wordpress数据库同步? 是否有可用的API?

[英]How can i sync data of codeigniter database with wordpress database ? Is there any API available for this?

Requirement : 要求:

I have table 'user' in CodeIgniter database as well as in WordPress database. 我在CodeIgniter数据库以及WordPress数据库中都有表“ user”。 If i am inserting data into 'user' table of CodeIgniter database,insert the same into 'user' table of WordPress . 如果我要将数据插入CodeIgniter数据库的“用户”表中,请将其插入WordPress的 “用户”表中。

You can easily do that by providing an Web API at wordpress or codeigniter level that provide you the required function to add a new user when a user is added in the system. 您可以通过在wordpress或codeigniter级别上提供Web API轻松地做到这一点,该API为您提供了在系统中添加用户时添加新用户所需的功能。

Note: Keep in mind that it is difficult to maintain the same data at two different places. 注意:请记住,很难在两个不同的地方维护相同的数据。 In case of any update you have to maintain it on both side. 如果有任何更新,则必须在两侧进行维护。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM