Can't Import Wordpress Database via PHPmyAdmin - Can't Perform Migration Via Plugin - mysql

I normally migrate databases for wordpress installs using wp_sync_db plugin. It has never failed before. Now when I'm trying to migrate from my local development server to the live site it's giving the following error.
I've tried only migrating specific fields, but it always runs into an error, just the field will be different.
I've tried to manually import the database to the live site and that is also failing with this error:
I'm not a database expert, and this is really frustrating. I have about two days of work I'm trying to migrate to the live site and can't do it with these errors.
I've been working on trying to solve this issue for a few hours, but have got no where. I've tried deleting the fields mentioned in the error, but that changes nothing. I've tried about 1000 different variations and configurations and it just keeps failing.
Please some database expert step in and save me!

I have no idea about the wp_sync_db plugin, but the phpMyAdmin error comes from having an older version of MySQL on your host which doesn't support the utf8mb4_unicode_ci collation.
You could look for the "Database system or older MySQL server to maximize output compatibility with:" dropdown on the phpMyAdmin export page, then select MYSQL40 there, but you run the risk of losing data if you have multibyte characters stored in your database.
This support page has a good summary of the situation and strongly suggests that you make your local MySQL version match as closely to your hosted version as possible, but that seems like a harsh reality in which to develop. I'm not a WordPress expert, but I believe that if you export for MYSQL40 compatibility and check the resulting imported data for any flaws you should be relatively safe.

Related

Proper way to backup and restore django project

I have been using Oracle's virtual box to setup an Ubuntu 18.04LTS OS to run my django application. The application is using MySQL as a database. The problem happened a few days ago, all my files suddenly became read-only, which is an indication of hard disk problems as seen in this post.
I have since prepared another server to run the application, however I would like to know the proper procedures in migrating data to ensure that I don't loose any of my files. Could someone point me in the correct direction? Thank you.

Exporting/importing mysql database with phpmyadmin

i'm migrating my website from a shared hosting to a VPS.
I setup all (files, mail, etc) and now i'm migrating database.
In phpmyadmin I export database to my pc, but when i trying to import database in new host (with phpmyadmin) i have only 12 tables of 47. I tried all avaible options, i tried with compression... I checked also table and these are not correctly populated. In the past i do this operation so many time without problem and i don't understand what can be.
Please can you help me?
I've found that sometimes PHPMyAdmin has issues with large files. This might be corrected by tweaking PHP's settings in php.ini (extend timeout, raise upload_max_filesize), but it may just be easier to upload the sql file to the server and import it via the command line.

How come doing a find/replace on sql dump and importing it gives error #2006?

I have the sql dump for a wordpress install that lives on a domain. I need to make some changes to the site so I have set up a localhost using MAMP.
If I import the sql dump "as-is" it imports without a problem. However I need to change all the URL's in the sql dump to point to localhost instead.
When I use Aptana to do a replace all on the sql file from http://example.com to http://localhost/example and try to import the modified file to mysql I get the error "#2006 - MySQL server has gone away"
What is the problem here? I have temporarily fixed by overriding my hosts file for example.com to point to my localhost but this is not a long term viable option.
I am aware this error usually occurs for files that are too large or the server not responding but I am always able to import the non-modified version of the sql. Also there are 9538 replaces being done so I cannot go through 1 by 1 to find the culprit.
Thank you
(Just realized that it doesn't relate DIRECTLY to your problem, but you still need this info if you are doing Search and Replace in your MySQL dump).
Data in the WP database is serialized. You can't just search and replace.
You can't just change the data without re-serializing it.
There are scripts and services that allow you to do a proper Search and Replace.
I usually use this tool (git repository here), and it works perfectly. There are also a couple plugins that work, and just discovered this service from a theme creation company that does the same thing.
Good luck and happy wordpressing.

Is There A Difference Between WAMP and MYSQL

This is my first post on Stack overlow
I'm a computer Engineer, but i'm relatively New to MYSQL
also i love using CLI
Backround info :
I Initially Installed MYSQL on my computer on IIS7 Virtual Server
Then Seperately installed PHP My Admin
when i did that it installed components such as MYSQL Workbench and Connectors and so on
i like the installed components but didn't use them frequently,
i only found myself using the Console and the Workbench
Now. the workbench has been replaced by PHP MyAdmin
at that time my database had only a few entries
after more research i learnt about WAMP, LAMP etc..
I'm now using the WAMP Stack
MY QUESTION IS THIS..
Other than the obvious fact that WAMP Uses Apache and i was using IIS7
is there any real difference between installing WAMP as a package
or installing all the components seperately
i would think not, but, what i did notice before i installed WAMP, was that i was always having to alter directory locations to enable new features
i find in WAMP that i'm doing that so much
In Giving me an answer
i would like it to be considered that ..
- I'm pretty much doing standard Data entry
- Running Queries
- i would like to have the ability to Backup the data file locations without any issues
- i would like to have the ability to Import and Export a table to another table if i see fit
eg.
if i created a table in a database called (for example) stock_my
and then i populated that with about 100 entries for example
and then i decided to rename the table my_stock
i would like to be able to export the data from stock_my to a .sql file
and then to be able to Import the data to the new table
Lastly , i would like Upgrading to newer versions of MySql or PHP My Admin to be relatively painless
THAT'S IT
SORRY ABOUT THE LONG POST
Any Comments are appreciated ahead of time
and i'd like to say , it's a pleasure to NOW be part of the community
sincerely
Martin Kuliza
The only difference is that Wamp installs those products already configured to work together and tuned up for a development environment, which means putting minimal footprint on your computer resources so you can work normally in the same machine you have the servers installed.
Installing them separately would only mean you would have to configure all that yourself, but essentually you would be installing the same things.

Sphinx searchd issues when running on Windows Server

I am using sphinx to index my content. I used it in my development environment (xampp) and it worked fine. Now I took it to the server (same config file), and it is giving me trouble.
I have a VPS Windows 2008 server with Plesk panel. I am the administrator. the problem is that when i run the indexer tool, it tells me that it found 0 docs and indexing 0 docs. So it seems like it is working fine as far as accessing the database, but it just doesn't find any docs. Does anyone have any ideas, I spent a whole day playing with the configuration and database with no success.
Thanks.
Well maybe the database table that sphinx is trying to index is empty?
Either way would suggest adding debug command line switches when you run indexer. Eg --verbose, --print-queries etc. They will probably give you a better clue where the problem lies.