WordPress menus lost when exporting local database and importing to server database - database

I have a local WordPress site running on MySQL. I wanted to move it to a server for testing and deployment. In addition to migrating new/changed code and media files, I exported the database from my local machine to a .sql file using Sequel Pro on Mac. Then I changed all URLs in the export to match the URL of the server. Then I imported it to the server database.
Everything's fine. No errors. Except the menus I created on my local machine are not showing up on the server. I'm seeing recommendations for plugins to export menus and import them on the server. But that seems silly to me. Aren't menus defined in the database? Isn't everything defined there in terms of content, options, settings, etc.? Why would I need to export/import menus and nothing else?

When you export and import the database of the wordpress site, the menus also include in it.
You just need to check in your admin panel the menu will be there. You just need to assign that menu for appropriate menu location like primary or which you have created, like this screenshot https://prnt.sc/1wp2gvd

The answer was that I was using a Pantheon.io-based upload/import feature to upload and import my .sql file. When I instead used Sequel Pro on MacOS to export my local database, connect to and import it to Pantheon.io, everything came through.

Related

when I open the website it doesn't load the products from the database mysql

I am trying to upload a php website and it does not load the products from the database
I exported the database with a sql file and I added it to the new database of the website
that I am uploading.
Nevertheless, only the slider of the website is working and the products, that are supposed
to be loaded, whenever I try to click on them on the menu, they do not show up.
¿What should I do to make it load the products?
Thank you.

dotnetnuke how to copy pages programatically

I have thousands of pages which i need to export from qa to production. I have seen the export page function but is there a way to do this in batch? I have found code to create pages but not to extract them. All permissions and settings must also be copied.
You could use the Portal Templates (export) feature found under the Host/Sites page.
That will generate a template for the site, then you could transfer that to production (that would be a couple of files) and "apply" that template to your existing site.
The other option would be to backup/restore the database, that is how most people handle changes between staging/production. Though that assumes any changes already made in Production exist in Staging.

Keep content from database when updating database.

I have a website live on the web. I've been working on the re-design for the site. I duplicated the entire site and database and worked on a test site. Now the test site is ready to go live. However, the current live site has been up for the last few weeks and content has been added as usual. How do I upload my new look for the site, with the changes I've made in the test database but at the same time not overwrite any content changes made in the current live database that were made over the past few weeks?
I want to keep the site content in the database but overwrite any module or theme data with the data from the test database.
My site is built on drupal
Thanks!
1) Upload new theme - this will apply themes changes and keep content in the live DB
2) If you have added any new content types, blocks, fields etc to your dev site then install the features modules. This will allow you to export your new features to a module, and then you can add this module to the live site to import your new features.
See this post for further discussion on the topic.
I used https://drupal.org/project/data_export_import it seems to be working well.

Including sqlite.db file in a WPF ClickOnce deployment

I built a small app with VS 2010 in WPF. I have used to store data in SQL lite. I have bound a dropdown field from SQL lite dataconnection.
When I run this application in VS it was worked fine. And published it as a click-once app.
I have added SQL Lite.db file to application files and it appears in Project Properties ->
Publish tab -Application Files.
I set the file's Build Action to "Content", and in
Application files, set it to "Include".
But still the dropdown field doesn't have any values.
most likely the path to database gets lost. See Accessing Local and Remote Data in ClickOnce Applications - you need to make your sqlite file as Data (not Content as you did), and use ApplicationDeployment.CurrentDeployment.DataDirectory folder as a base folder for it.

Steps for Export and Import in Liferay

I have built a website in Liferay using eclipse IDE.
Please tell me the step by step procedure for export/import or publishing website from development machine to deployment machine. .
Thanks
There are two options available to you:
1) Backup your development database & restore it on your production database (make sure all additional portlets are deployed on the production box as well).
2) use Liferay's export / import functionality found
Go to Control Panel
Go to the community you want to export
Click actions -> Manage Pages
Go to Export / Import
Select all options for Export
Save the resulting LAR file somewhere convient
Upload the LAR file to your production server
Follow the previous steps but go into Import
Select any options you require
Click "Import"
Voila, you're done!
For the record in Liferay 6.1 the export in control panel under "site pages".

Resources