vdmjordy
Member
Posted 2 years ago #
Dear all,
I have a website but now we are creating a new one, named V2. Now I will use the same wordpress database in this new website. How can do this (for testing reasons).
I have the following structure
Root -> Httpdocs -> Main (it's the old website with WOrdpress files in it)
root-> httpdocs -> v2 (the new website, but I will use it with the same WordPress database).
kind regards
Jordy
henkholland
Member
Posted 2 years ago #
vdmjordy
Member
Posted 2 years ago #
when I've edit the wp-config file, do I need to reinstall wordpress again for my second website?
I've editted the wp-config file and upload the whole software to my FTP. When I want to install WordPress, the following error occured:
WordPress database error Table 'hostingl_wordpress.websitev2_options' doesn't exist for query INSERT INTO websiteV2_options (option_name, option_value, autoload) VALUES ('cron', 'a:2:{i:1247224696;a:1:{s:17:\"wp_update_plugins\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}}s:7:\"version\";i:2;}', 'yes') made by add_option
do I need to reinstall wordpress again for my second website?
Yes.
I've editted the wp-config file
Note that you must have a different prefix for your database tables in wp-config of your second install so you don't override the first WP install DB tables.
Also, before installing the 2nd WP, backup the database of your 1st install, just in case...
vdmjordy
Member
Posted 2 years ago #
I think that you don't understand my question.
I've 2 websites on the server, both websites must use the same database so that in both websites the same articles can be viewed. When I have post a new article in WordPress, that both layouts will view that article. Both websites must have the same content
to use the same database - how would you get around needing 2 differing url's in the database
might look at this thread
http://wordpress.org/support/topic/206509?replies=24