开发者

can I have one db for multiple wordpress sites but multiple wp codes/installations

开发者 https://www.devze.com 2023-01-17 10:31 出处:网络
I need few Wordpress sites for testing purposes. It would be great if I can use only one db but I nee开发者_开发百科d few wordpress codes/instalations (because I need different settings and plugin

I need

  • few Wordpress sites for testing purposes.
  • It would be great if I can use only one db
  • but I nee开发者_开发百科d few wordpress codes/instalations (because I need different settings and plugins for each site.

Can I have all that running on one mySQL db? Would use the same db_name, db_user, db_password, etc… and the only thing I change for the every other blog is the prefix?


It should be perfectly possible. when you setup wordpress there's a field to specify the table prefix (default is wp_) when setting up the database. These settings are also stored in wp-config.php

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号