Hello!
Will the plugin be updated? Is there any commercial version of your awesome plugin?
Cheers
]]>This was noticed in a recent data migration. All percent symbols in the database were replaced with random strings of numbers in curly brackets eg: {11263527423764283749223}.
This is not the actual string, I’d already fixed all occurrences when I decided to log this issue. But something for you to look out for and see if you can replicated. Not sure if this is a plugin issue or potentially a database incompatibility issue between the two databases.
If you’re unable to replicate the issue I can try to see if there are differences between the two databases that might be responsible.
]]>Hi @tamlyn!
Thank you for developing this plugin ?? I was looking for a way to keep my live site and the local dev version in sync and it worked nicely after applying this patch from @jherter with a couple of minor tweaks.
I also took the liberty to send a pull request to your GitHub repo. Hope that’s OK.
]]>If you are getting a 405 Forbidden error when you try to pull from a site that has iThemes Security enabled, try commenting out this line in .htaccess:
RewriteCond %{HTTP_USER_AGENT} "^$" [NC,OR]
Example:
#RewriteCond %{HTTP_USER_AGENT} "^$" [NC,OR]
This resolved the issue for me.
]]>Hi,
Does this push/pull ALL tables in the databases or just the WP_ ones?
Thanks,
John
]]>I don’t have two databases setup yet, so I can’t test this yet.
Does anyone know if there is a confirmation before someone overwrites the local database with a pull or the remote database with a push?
Thanks in advance.
]]>Hello,
I’m getting this error, and nothing more actually. How can I solve it?
]]>Hi,
Awesome plugin!
Though, on one project i’m trying to pull the DB from my dev-server (remote(digital ocean)) to my local dev.
I’m getting the error Sync failed. Invalid dump.
.
While on an other project, same local dev, same remote dev-server, it works awesome.
Not sure what is happening. I might doing something wrong.
Hope you can help me out with this.
]]>When I do a push from staging to production, I get Remote site not accessible (HTTP 500), although do a pull from production from staging, they are the same exact code/db. Any tips on how to debug this? We would like to keep all updating within staging and not have content editors login into production. Many thanks in advance.
Michael Connors
Craftww
I have 2 WordPress on 2 home servers. I like on to be a backup and this “Database Sync” Sounds good.
I installed the plugin on both. Copied the “My token” from one to the other. When I 1st click on Sync it just goes to that other WordPress. But then I can click the back arrow and click Sync again then it will so what way to sync. Nice! But on ether one to sync it just to the 2nd one it will say “is currently unable to handle this request.” “HTTP ERROR 500”.
The 1st one I do have a WWW open port to it I have them in my home. The 2nd one just has a LAN name. I guess that my be it. But they both have a LAN name just one does not have a WWW name. Could that be why?
-Raymond Day
]]>It would be nice if the plugin had an option to search/replace site_url.
My dev sites are always at <domain>.dev, whereas staging and production are going to be a different URLs.
If the plugin exists on a repo I’d be happy to contribute a patch.
]]>Hi,
I’m trying with this plugin to merging data from my local dev environment to my staging. My question is: I want to share only severals tables but not all my database. Fo exemple, I don’t want to sync Post, users… but I want to sync site configuration, plugins configuration (if new plugin added, sync new table (structure + data)) etc….
Which db tables can I exclude without problems during the procedure ?
To sync ne data structure without my dummy post/pages from my dev environment.
Thank you so mutch
]]>Hey! I’ve been getting this error for some time today, I’m trying to push from the local to the staging site, but it gives me HTTP 413 from local to remote and HTTP 0 from remote to local. Any solutions would be appreciated.
]]>Basically I wonder if the plugin may synchronize only what has changed since a full synchronize, to avoid long tasks. At this stage my database is using 16MB in mysql data folder, 33MB when dumped in mysql uncompressed form…
]]>Hi,
Perhaps I’m not understanding correctly what this plugin does, but in my opinion it does not sync anything.
The way it works for me is that I can push my local database to my staging site, but I still need to run the Search and Replace DB script twice for both path and URL.
I like the fact that I don’t have to go to PHP MyAdmin to do an export and then to go to the staging site to do an import, but to call this a database sync is a bit too much in my opinion, unless I am missing something?
]]>I’m pretty sure that this plugin doesn’t work correctly with a Multisite setup.
I just tried to sync (pull) a database from a Multisite A,Subsite to a Multisite B, Subsite and I got the following error:
Error establishing a database connection
Thankfully, Multisite B (which is the one with the error) was on a dev server, so no big deal.
Additionally, I re-created Multisite B and tried the same thing again (without any other plugins installed or activated). Same thing happened.
Can you confirm that it just not working for multisite? Maybe I did something wrong. You should add a warning btw on the Description page ??
]]>I just installed the Database Sync plugin, and I was able to install and activate it on both my local server and the production server. I was also able to link my production server installation to my local installation.
However, when I try to pull the database from the local server, I get the following error:
Remote site not accessible (HTTP 401)
I believe this is due to the remote site having HTTP authentication enabled (it requires a username and password to access the site itself (not just the WordPress Admin area).
Is there an easy way to modify the code in the Database Sync plugin to pass this HTTP authentication information to the remote server when trying to the sync the databases?
]]>Hi
I have a staging website that is out of date compared to my live website.
So I would like to overwrite the database of the staging website with that of the live website, to bring content etc. up to date.
I’ve linked both sites with the secret key.
My question is; from which website is it pulling and from which will it be pushing?
if I hit sync on the live website admin panel; will it pull data or push data? Its a bit confusing as it stands.
Suggestion: I also think an exception to only push or pull from a database would be great to avoid accidental overwrites and to make it clear whether or not its pushing or pulling?
Thank you
]]>Possibly a FAQ: How are local dev machines (no public port 80) handled? Do I just need to pull while on that machine?
Another possible FAQ: How do most people get by without doing a URL search-and-replace. Seems lots of WordPress code and/or plugins and/or themes use absolute URLs when they store stuff in the database.
]]>I am experiencing a Blank White Screen after 60 sec. No php errors in the logs. I am attempting to sync a 1GB database across environments This process should take about 3 min with my current network setup. The “Sync” screen just goes blank with no explanation.
Is there a way to prevent this timeout? PHP is set to timeout after 360 sec. Memory allocated is 3GB.
Any help is appreciated
]]>Worked fined last time i used it. I didn’t use it quite a while.. so i dont now which version is the first, where it doesnt work. After Pulling from the remote site I get a “Sync failed. SQL error.” Message. Pushing from dev to the remote site I get a “Database synced successfully”, but it has no effect. The database at the remote site stays the same.
I am using Database Sync v0.4
please help!
]]>I have an enhancement that maintains environment relative links on sync. if you want it let me know Ill gladly send it over.
]]>Is it possible to set up a schedule for this plugin to sync? I’d like to push my live site to the staging site every night.
]]>Hi,
I want to raise awareness about an issue that might crop up for others.
Last week WordPress released 4.2 (and soon after 4.2.1), which among other things adds support for Emojis. To support that they switched tables to “utf8mb4_unicode_ci”, rather than “utf8”.
A problem may arise if the server you sync with has an older version of MySQL. In my case for example, my home installation uses MySQL 5.6.15 while my host (OVH on shared hosting) uses 5.1.73. That version doesn’t support utf8mb4, it was introduced in 5.5.3.
The symptom is strange. I’m using PUSH direction. Database sync plug-in creates the SQL dump correctly and sends it to the remote. The remote seems to accept it and returns HTTP 200 OK. Local install moves to “Database synced successfully” and all seems well. In fact, the remote hasn’t been updated at all.
I haven’t fixed my workflow yet. I can’t even dump and sync manually since the same issue arise, local dump exports in utf8mb4 which can’t be imported on the remote.
If anyone has suggestions I’d be happy to test. Currently testing exporting SQL data in compatibility mode MYSQL40.
]]>I’ve recently re-installed my computer and so I’m not sure if the problem is with my installation or with the plugin.
When running a pull request in my local development server (dev.isoreiki.com, XAMPP) from the live site (isoreiki.com), it loads for about thirty seconds and then I get a white screen (no content at all). The url it shows is:
It is not fully syncing the databases. I’ve tried it about six times now. Sometimes I am getting logged-out after the sync, sometimes not. It is partially syncing, but some things are getting missed. Some pages that I recently added are just not getting synced to the development server.
I thought it might be a timeout, but I added
$cfg['ExecTimeLimit'] = 6000;
to config.inc.php in XAMPP’s configuration files.
Any help troubleshooting this would be really appreciated.
]]>Just attempting to use this for the first time on two sites – one current and one development – both live.
I am able to get each site to recognise that it is linked to the other, but when i try to pull from the main site to the dev version I get the following error:
Remote site not accessible (HTTP 403)
Any suggestions?
]]>I have to deploy from a development server to a live server with ever changing content, so I need to merge the databases rather than overwrite them. Is that with this plugin means by ‘sync’, that it’s merging the databases?
]]>I want a feild where I can enter a costum sql query, or where in the code can I add more domain name replace.
I have look in the fonctions.php but I dont see where you replace the url of the current data by the one in the remote serveur or vice versa.
thx for your help
J-Marc
Is there a way to get this to capture other tables that aren’t default wordpress, like WooCommerce or even ACF? Other than that major issue right now it seems to be working pretty well on a basic WP site.
Thanks, would love to see this plugin evolve cause it meets such a great growing need as devs are being educated about multiple environments.
]]>Hello,
Cannot access either remote sites. (local => Remote or Remote => Local )
I use Hostgator and have enabled remote SQL in cpanel for my ip address.
I have used this plugin on other servers with no problem. Any ideas?
]]>