doufei4923 2018-03-20 05:54
浏览 820

如何将另一个(外部)wordpress数据库服务器连接到另一个wordpress服务器?

I am new to wordpress. This is what I want to setup.

There are 2 wordpress servers. One is the database server and the other is application. Only the database server will be used to update the site. The other wp-site will look at the DB site and show it's content. How is this configuration possible?

I have tried the following config but it is not working. Pls help!

define(‘DB_NAME’, ‘myserver’);

/** MySQL database username */

define(‘DB_USER’, ‘user’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘password’);

/** MySQL hostname */
define(‘DB_HOST’, ‘IP’);
  • 写回答

1条回答 默认 最新

  • dongmao3131 2018-03-20 06:16
    关注

    It's easy:

    In your config.php file on your application server:

    define(‘DB_NAME’, ‘your-database-name’);
    define(‘DB_USER’, ‘your-database-user-name’);
    define(‘DB_PASSWORD’, ‘your-database-user-password’);
    define(‘DB_HOST’, ‘the-ip-address-of-your-database-server’);
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog