Use Different database for different tables in wordpress - database

I am using WordPress Platform for my website.And its growing constantly.
We often ,do lots of experiments and customization on it.
Now we like to use a developer website to do all these experiments.Thing is i like to use the same settings and everything for my developer site,so everything should match the live website.
My problem is,i can setup the whole new mirror site ,but since we will have different database for our test site,the posts won't be updated to it,when its published on live site.
So is there a way,i can use my post table of live site on developer site.
i.e everything will be of its own on developer site,but it will fetch posts from live site.

Related

How can i retrive website URL from Joomla DB

i'm managing lot of websites, few of those are Joomla.
Last webmaster has gone without giving any help and i've those Joomla DB that i cannot understand which websites are related to.
I mean, on wordpress, i'd see on "option" table to check URL but where i can find this information on Joomla?
Thanks
Have a look in the configuration.php of each site instead. In them, you can see which database is connected to the specific site.
Joomla by itself does not store the web site URL in this tables or configuration files, and I take that as a merit over Wordpress. The advantage of not storing the URL is that I could simply change web server's configuration when I want to change a site's URL. Everything will appear perfectly, unless for some reason a programmer chose to hard-code the web site URL into his code (which is a very bad practice).
So I suggest look into web server's configuration to get your the document roots and then relate the configuration.php file in there to the databases.
So, no chances.
Only solution i see is to backup and delete DBs one by one, if more than one, and see which website has gone "offline"

Deploying umbraco site to production database

We have an umbraco site connected to MSSQL databases, which have three phases:
1) Local:
This site is connected to a database running on our syst-server and is for our developers to mess around with as intended. This database is pretty much for testing and messing around
2) Syst:
This site is pretty much a deployed version of the local site, still connected to our syst-database. This is for our testing team to ensure everything looks good (apart from stuff like product data, since we will be creating a lot of test products in syst).
3) Production:
This is where the magic happens. We have a seperate database for production, which has valid data for our company.
Now my question is:
How would I sync umbraco changes made to our production database, whilst not syncing products? Is there a smart tool made for syncing only umbraco data, and keeping out custom data?
Umbraco Courier - https://umbraco.com/products/umbraco-courier/.
You can pick exactly what you want to push to the production site.

How does writing to a database work when a web app uses multiple databases like Sitecore has

In Sitecore you basically have three databases. The Core, Master and Web database.
Simply put the Core database holds all Sitecore settings. The Master database is the authoring database. So it contains all versions of any content.
Then in Sitecore you can "publish" the contents and it will publish the latest version of each content to the Web database.
So suppose I have a website with a news page. And a user is able to edit a news item from the web site (so not through the CMS). How would the database then get updated when it's set up like this?
It would probably update the Web database, but then when I go into the CMS I don't see the latest changes, since the CMS reads from the Master database, right?
So does that mean that it should write twice? Once to the Web database and once to the Master database?
Can anyone tell me how this works in Sitecore or the like?
The reason I'd like to know this is becasue I'm thinking of creating a similar database setup. And I'm just not sure how to solve this issue.
When you have items that needs to be updated by the website visitor, you need to use the SitecoreService SOAP webservice or create your own custom webservice that runs on the Master-instance and triggers a publish after updating.
Well, Sitecore has a publishing step. When the user publishes in Sitecore, it updates the Web database at that point. If you want to build a similar system, I would simply store all versions of an item in the Master database and only when the user chooses to publish, copy the latest version to the Web database.
If your site
- generates a lot of comments
- generates the comments continuously
- uses multiple content delivery servers
- requires CMS users to manage them
I would not store the comments as content items.
The reason is HTML cache and publishing behavior.
On high volume site you'd most certainly use html caching to achieve best possible performance. If a publish is required to show comments, you'd need frequent publish actions and thus html caches are cleared often.
You don't wan't that :-)
Modeling after the DMS implementation is the safest (not cheapest and Datatables isn't something I recommend these days), storing stuff in a separate database, possibly using queuing to prevent an overload if things get busy..

Database app, accessible from Mac, iPad and Web

I feel very out of my depth with this query, but not being able to do it isn't really an option so I am going to have to learn how one way or another.
I have been tasked with building an application / database for a Chauffeur company. I have done similar things before in Microsoft Access for other customers, hence getting this request, but this customer wants to be able to run the app on their Mac, and not install Windows. My only real experience of coding is HTML/CSS and some VBA when using Microsoft Access. For these Access DBs I have created separate front and back end files to allow multi user access and also remote access (the back end file being kept on the company server).
So onto my query (apologies for dragging it out)...
I need to be able to build something that the single user can open and run on his Mac, so he can view, add, change jobs and their details. He also needs to have the same access on his iPad, although purely viewing would suffice.
As regards the web access, basically he wants to be able to go onto his "Booking System" application, go to "New Job" and send a link to his client, where they would click the link in a browser, fill in the details (Name, Contact Number, collection and drop off addresses, collection date and time etc...) and when they submit this form the details be updated on his booking system.
My issue is I do not really know where to start. I just need some pointers as to where to get started. Is it an issue of building a MySQL database back end and then hosting this somewhere and linking different front ends to it etc...
Yes, with multiple clients, the web is your best answer. For the cheapest hosting route, you can find good, inexpensive PHP and MySQL hosting that will provide what you need. You can design the front end with HTML/CSS, use PHP to develop the logic and data access, and use MySQL to host the data.
The Mac and iPad can access the application via the web URL--you will not be building an iOS app, rather the user will access the web site through a web browser. You can use some pretty neat tools like jQuery UI Mobile to create an app-like experience, but if you need to support multiple clients on a small budget, an iOS app and separate web site is not the way to go.
Make sure you have some PHP expertise available or figure this part out. There are tons of great resources on the web to get started. Good luck!

Using the EPiServer Communities API from a console app?

I'd like to write a console or winforms application that will interact with the EPiServer database. Since I don't want to muck about in the deep inards of the database I'd like to use the EPiServer API.
However, all the examples are using the "CommunitySystem.CurrentContext" which is null when running outside the website.
Now, I'm going to transfer a large amount of data from a legacy system to EpiServer Community and I really don't want to do that from a web page but from an application I have a little more control of.
Is there any way I can use the API from outside the web context?
I'm not that familiar with the community model. But... I've had no problems at all running huge imports through a web form (or control). The key (besides having disabled execution and database timeouts) has been to run it through Internet Explorer on the site's server and have the site's domain name mapped to 127.0.0.1 in the HOSTS-file. It can run for hours and hours while logging progress to a table or text-file before sending the response.
My colleague Jarle figured out the last bits and blogged the whole process here So if you want to run the EPiServer API outside of IIS, that's the place to start. Works like a charm!

Resources