Title: DATABASE ERROR: database error write
Last modified: June 7, 2020

---

# DATABASE ERROR: database error write

 *  Resolved [stuart](https://wordpress.org/support/users/lone-walker/)
 * (@lone-walker)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-error-database-error-write/)
 * Been using Duplicator for a few months now and all been working fine, but just
   tried to use it on a new site (hosted by IONOS aka 1-to-1) and getting pretty
   fatal error message at Step 3:
    WARNING: DATABASE ERROR: database error write
 * followed by:
    WARNING: Database Table row count validation was failed
 * The install error file is filled with lines like this:
    **ERROR** database error
   write ‘Statement violates GTID consistency: Updates to non-transactional tables
   can only be done in either autocommitted statements or single-statement transactions,
   and never in the same statement as updates to transactional tables.
 * I suspect it’s due to the fact that the IONOS db is MySQL v5.7 and I’m duplicating
   from a MariaDB at v10.4.10 – but I have no upgrade options on the IONOS hosting.
 * Any ideas how I can fix this?
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-12955028)
 * Hey [@lone-walker](https://wordpress.org/support/users/lone-walker/),
 * One step 2 of the installer there are a few options for database mode… more details
   are here:
 *     – What if I get database errors or general warnings on the install report?
   –
   [https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-260-q](https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-260-q)
 * You might also try building in PHP mode see Settings > Packages…
 * If you want to submit a [support ticket](https://snapcreek.com/ticket) for this
   issue we can have a closer look at your setup. Please provide a link to this 
   thread when submitting the ticket.
 * Thanks~
 *  [mikeschumann](https://wordpress.org/support/users/mikeschumann/)
 * (@mikeschumann)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13031145)
 * I’m having exactly the same problem duplicating a 1and1.com site. This used to
   work just fine a couple of months ago. Is there any more info on how to fix this?
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13039319)
 * Hey [@mikeschumann](https://wordpress.org/support/users/mikeschumann/),
 * You might try to switch to building your database in PHP Mode. In the plugin 
   goto Settings > Packages Tab > Choose PHP Code. Then try to reinstall.
 * Let me know if that helps~
 *  [mikeschumann](https://wordpress.org/support/users/mikeschumann/)
 * (@mikeschumann)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13041502)
 * PHP Mode was selected when I created the package.
 *  [mikeschumann](https://wordpress.org/support/users/mikeschumann/)
 * (@mikeschumann)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13041572)
 * One additional note: The WordPress site that created the duplicator package uses
   MySQL 5.5. The database for the new site is MySQL 5.7. Not sure if this has anything
   to do with my problem.
 *  [mikeschumann](https://wordpress.org/support/users/mikeschumann/)
 * (@mikeschumann)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13046732)
 * I ran a test with an old MySQL 5.5 database that I no longer needed in my hosting
   account. The website installed correctly. My problem is definitely the result
   of trying to install a Duplicator package that was created with a MySQL 5.5 database
   to a new site using MySQL 5.7. Any suggestions on how I can solve this problem?
 *  [mikeschumann](https://wordpress.org/support/users/mikeschumann/)
 * (@mikeschumann)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13046771)
 * I ran another test. I converted my website’s WordPress MySQL 5.5 database to 
   5.7 using the process outlined in the IONOS help files (Exporting the database
   using phpMyAdmin, and the Importing the file into a new MySQL 5.7 database). 
   I then updated the WordPress wp-config.php file with the new database info. Once
   I did this, I tested the website. I then ran duplicator on this website and created
   a new package for this MySQL 5.7 based website. I then tried to install this 
   package on an IONOS website using a MySQL 5.7 database. I ended up getting the
   exact same errors as before.
 * Bottom line, the problem is not related to a mismatch of MySQL database versions,
   but rather a result of trying to install a Duplicator package using a MySQL 5.7
   database. I’m not sure if this is an IONOS only problem, or if this is more widespread
   than that.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13069162)
 * Hey [@mikeschumann](https://wordpress.org/support/users/mikeschumann/),
 * Honestly, I don’t ever really recall seeing anyone commit that exact error, so
   it does seem more related to an IONOS problem. If none of the options for the
   mode in step 2 installer work, I’m not quite sure what else to try. Maybe your
   host can take a look at the SQL script and provide us some feedback.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘DATABASE ERROR: database error write’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/database-error-database-error-write/#post-13069162)
 * Status: resolved