Wordpress Database & WP Migrate - sql

I built a WordPress website in localhost MAMP. Upon completing the site, I wanted to upload it to the actual hosting site using FTP. I uploaded all the content but DB. I used a WordPress plugin called 'WP Migrate' to export the database. Then I uploaded exported file to phpMyAdmin.
But the site did not work after uploading onto my site using FTP. I then begin to work again locally, using my local host. There is a feature to find & replace DB values in 'WP Migrate'. I replaced existing local site name with actual web site name. This stopped working my local website also.
I am not trying to figure the live site, but figure the local host site right now, that way I can perform a transfer. I believe it has to do with the DB somehow but not sure where or how to edit it.
Basically it is the same issue that this person is having as well, but the question wasn't answered: https://wordpress.org/support/topic/undo-find-replace/
Nathan Rojas

If it's after you updated your site name, you can easily change it back by logging into the myPhpAdmin of your local site and choosing the MySQL database you are using. under the wp_options table, you'll see a field called siteurl and home. Update those fields to what you had prior and it'll come back. ;)

Related

Importing database (transfer wordpress site db)

I am moving a site from old godaddy hosting to new cpanel godaddy hosting. I have downloaded Wordpress files using ftp, and downloaded sql database file as well. When I go to my new hosting and try and import database I get this error...
x#1062 - Duplicate entry '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xEF\xBF\xBD\xEF\xBF\xBD' for key 'PRIMARY'
What am I doing wrong?
Perhaps this answer is not about your error in particular but I think it can help you.
I humbly recommend you the Duplicator plug-in when moving WordPress sites. This plug-in will create a package for you which contains all your WordPress files and DB. It will also create a php installation file that will help you reinstall everything in very simple steps.
I've never experienced any issues moving WordPress sites with this plugin. Here's the link if you wanna give it a try.
https://wordpress.org/plugins/duplicator/
For the duplicate entry, if you have installed wordpress on the new panel then its because you have an administrator user with id 1 in the old database and in the new database as well that's why its showing duplicate entry.
The right thing for migration of wordress site is that you migrate it with 'All in one wp migration' plugin.
Manually move theme and plugins for time efficiency and export db with 'All in one wp migration' plugin.

Prestashop migration procedure

I have a client who wants to move their hosting provider and we have successfully cloned exact copy of original server to the new hosting provider's server. We want to use different domain name staging.copiedsite.com to creating staging environment to check everything works fine, then we want to flicker it back to original DNS (www.actualsite.com). My question is, how do you configure the site to work with staging domain name? I am going to basically find all database record that says "www.actualsite.com" and replace it with "staging.copiedsite.com". Is that all it needs? Is there any configuration text file that I need to edit? Thanks.
You shall change the domain in BackOffice > Preferences > SEO & URLs. This will update configuration in database and your .htaccess file (For some obscure reason you might have to save this page two times so that the .htaccess file is overwritten).
Also some CMS pages and modules can use absolute URLs so changing all those values by querying the database is a good idea.
Basically that's all you need.

Uploading umbraco site on server from local host

I've successfully created site using Umbraco now its time to upload it on hosting server..
i've searched and got one paid product for the same..and i dont want to use it.
Has any body tried developing Umbraco site on local and then uploading it on server?
If yes then please help me doing that.
First I run the umbraco install from a local IIS website. Then I setup my visual studio solution for that website (and my souce control). Then I work, until I reach a beta version, then I go through this process for deploying:
Ftp over to the remove website and copy the whole website (I actually use Beyond compare).
Connect to my local database with management studio and create a .bak file.
Upload the .bak file to the database server.
Restore that database
Review connection strings in web.config
Then I'm pretty much done.
Once I'm "live" and have content I don't want to lose, when I want to work on the website, I bring back the live database through a .bak file, then I make my changes. They often include DB changes since the schema is basically in the database. I note all the operations I do. Once my changes are ready I manually replicate the changes on the live site as I update the files.
This is very painfull but I tried solutions like courrier and other things like that and they are not reliable enough for production I find. Manually is the only risk free way I see for the moment.
Hope this helps.
Yes, that happens all the time. Use FTP to copy your local installation to your webserver, modify the web.config to point to the correct database and your website should be up-and-running.
I'm sure there are more elegant solutions with less clicks but here's how I do it on azure websites with sql, not sure what hosting/db you're using:
1) Create an empty db on azure with the same login and user as my local db.
2) Create an empty site on azure connected to my db.
3) Download the publishing profile.
4) Upload the db the first time with Sql Azure Migration Wizard.
5) Import the publishing profile into and upload the site with WebMatrix.
6) Thereafter I deploy the site and db with WebMatrix.
WebMatrix uses WebDeploy or FTP, you can use WebDeploy through IIS if you like, and FTP.

Drupal production site access issues

I am unable to get access to my Drupal 7 website as I migrate it from my dev to prod servers.
The steps I followed are :
Take a SQL dump of the database
Upload Drupal site into the www/ folder available online
Create database on website with the same name
Import the SQL dump of the dev database and recreate the tables on the live database.
Make changes to settings.php as applies
Now I am not sure what changes to settings.php as applies indicates. However, when I try and access my site at say examplesite.com , I am shown SQLSTATE[280000] Access denied for user 'siteadmin#localhost' using password: YES
siteadmin#localhost is the same guy who acts as administrator on my development website and has the same password.
SO I am not sure why the same login credentials do not work for my dev site.
I also tried the credentials I have to access the control panel of my website but they do not seem to work either
Am I missing a trick here guys?
Thanks!
Recheck your settings.php twice
If correct, check if you can have a direct access your database with these credentials (via command line or phpmyadmin for example)

copy full local Wordpress website from a computer to another

I have a wordpress website which is installed by Microsoft Webtrix on my computer A.
I have installed Microsoft Webmatrix on my computer B so that I can continue my work on computer B so that I can continue work on computer B.
I want to copy my full wordpress website (website content + database) from computer A to B.
I can not find a tutorial which teaches how to copy database from computer A to B.
I am totally new to creating web so please kindly help.
Thanks
Your best long term solution is to learn how to export WordPress sites from local to local development environments as well as local to live host.
Within your present set up simply copy all files from wp-content of the site and transfer them to your new set up.
Add a plugin to your original site such as WP Database Backup. This will allow you to dump the .sql (database) and keep a copy as a backup.
Over to the new set up (B computer). Create a new wordpress site.
Copy and paste the wp-content folder into the new site.
Now this is where you need to check with web matrix on your new set up. You'll need to make sure the wp-config.php file has the correct settings such as db name and password user etc.
Finally upload the backup db .sql file via the db plugin mentioned in step 2.