swiftaxe
Member
Posted 2 years ago #
Hi dudes!
I'm having a wordpress installation set up on a subdomain. I have customized this with a theme and lots of plugins.
I'm going to have an identical blog on another subdomain, but it should not share the same database tables (ie. it shall have it's own blog posts).
I copied all the files to the new subdomain, but it still uses the same database tables as the other blog. How do I make it use it's own database tables?!
Changing the table_prefix setting in the wp-config is not enough, is it? Don't I have to create all the new tables for it? What is the best solution without reinstalling from scratch?
Thanks!
I copied all the files to the new subdomain
So, re-upload WordPress in the new subdomain and make sure you create a new wp-config.php for it with new database info (you said you will not be sharing the database). Just in case, before you run installation again, delete any .htaccess file which you might have copied from the other installation. Then run the 5-minute install.
swiftaxe
Member
Posted 2 years ago #
Thanks mercime!
Would it be enough to just upload the install folder again, (and do the wp-config changes)?
If you want to use the same database but different set of tables, you can modify the table prefix on wp-config.php and leave the database settings as they are.
But if your web host allows more number of databases, it will be better to use a separate database for the new installation. Create the database and insert the database name, username and password in wp-config.php It is also a good idea to use a new set of security keys for this installation.
And another most important step is deleting the .htaccess file as indicated by mercime.
S.K
Yes swiftaxe, just make a fresh install. Clean and simple.
swiftaxe
Member
Posted 2 years ago #
Thanks mercime! I will try it out.
Thank you kichu! I will be using the same database because I will make it share the user tables. So different blogs, set up the same, with the same users.
I'll keep in touch if installation goes painless.. or not =)
Don't forget to change the prefix wp_ to something else like trxwee_ in the second install or you'll get problems.
*share the user tables*
But you can use the same user settings even if you create a different database.
I repeat this:
"...if your web host allows more number of databases, it will be better to use a separate database for the new installation."
And you don't derive any advantage in sharing the same database except saving on the number of databases created!
S.K
swiftaxe
Member
Posted 2 years ago #
Kichu,
Do you mean I can use the same user settings, or users?
It's going to be member blogs. When a member registers on one of them, he will automatically be registered on the other as well.
I was thinking of using this solution: http://justintadlock.com/archives/2008/09/20/installing-two-wordpress-blogs-with-the-same-users
Thank you for all help!
Ok.
In that case you'll have to use the same database, with different prefix.
Best of luck.
S.K
swiftaxe
Member
Posted 2 years ago #
Installation worked with a charm. The shared user tables did not though =P. So I will have to search for a plugin.
Thanks for helping out!