'Invalid default value' = database install fail
-
I have run into the same issue as here
I usually use duplicator to upload my development site to the live site, but for a mistake I need to reverse this operation, restoring a backup made on the online site to the offline development site.
For some unknown reasons the restore to the local development site will fail with a lot of errors. For example: (I have masked some info with xxxxx)
******************************************************************************** DUPLICATOR INSTALL-LOG STEP1 START @ 11:18:58 NOTICE: Do NOT post to public sites or forums ******************************************************************************** VERSION: 1.1.15 PHP: 7.0.4 | SAPI: apache2handler SERVER: Apache/2.4.18 (Win32) PHP/7.0.4 DOC ROOT: xxxxxxxxxxx DOC ROOT 755: true LOG FILE 644: true BUILD NAME: xxxxxxxxxxx REQUEST URL: xxxxxxxxxxxx ******************************************************************************** ARCHIVE SETUP ******************************************************************************** NAME: xxxxxxxxx SIZE: 267.86MB ZIP: Enabled (ZipArchive Support) EXTRACTING ZipArchive Object ( [status] => 0 [statusSys] => 0 [numFiles] => 12655 [filename] => xxxxxxxxxxxxx [comment] => ) COMPLETE: true WEB SERVER CONFIGURATION FILE RESET: - Backup of .htaccess/web.config made to .orig - Reset of .htaccess/web.config files UPDATED FILES: - SQL FILE: 'E:/Users/Rix/Offline Drive/Web Ghianda/Wordpress/installer-data.sql' - WP-CONFIG: 'E:/Users/Rix/Offline Drive/Web Ghianda/Wordpress/wp-config.php' ARCHIVE RUNTIME: 225.1108 sec. ******************************************************************************** DATABASE-ROUTINES ******************************************************************************** -------------------------------------- SERVER ENVIROMENT -------------------------------------- MYSQL VERSION: This Server: 5.7.11 -- Build Server: 5.6.28 TIMEOUT: 5000 MAXPACK: 268435456 -------------------------------------- DATABASE RESULTS -------------------------------------- **ERROR** database error write 'Invalid default value for 'comment_date'' - [sql= CREATE TABLE <code>cg_comments</code> ( <code>comment_ID</code> bigint(20) unsigned NOT NULL A...] **ERROR** database error write 'Invalid default value for 'created'' - [sql= CREATE TABLE <code>cg_duplicator_packages</code> ( <code>id</code> bigint(20) unsigned NOT NUL...] **ERROR** database error write 'Invalid default value for 'link_updated'' - [sql= CREATE TABLE <code>cg_links</code> ( <code>link_id</code> bigint(20) unsigned NOT NULL AUTO_IN...] **ERROR** database error write 'Invalid default value for 'post_date'' - [sql= CREATE TABLE <code>cg_posts</code> ( <code>ID</code> bigint(20) unsigned NOT NULL AUTO_INCREME...] **ERROR** database error write 'Invalid default value for 'user_registered'' - [sql= CREATE TABLE <code>cg_users</code> ( <code>ID</code> bigint(20) unsigned NOT NULL AUTO_INCREME...] **ERROR** database error write 'Table 'casaghianda.cg_duplicator_packages' doesn't exist' - [sql= /* INSERT TABLE DATA: cg_duplicator_packages */ INSERT INTO
cg_duplicator…]
**ERROR** database error write ‘Incorrect string value: ‘\xF0\x9F\xA4\xA0\xF0\x9F…’ for column ‘option_value’ at row 1′ – [sql=INSERT INTOcg_options
VALUES(“6898”, “_transient_feed_ac0b00fe65abe10e0c…]
**ERROR** database error write ‘Table ‘casaghianda.cg_posts’ doesn’t exist’ – [sql=
/* INSERT TABLE DATA: cg_posts */
INSERT INTOcg_posts
VALUES(“2”, “1”, …]`I have followed all the possible fixes with no success. Strange is that the local server WAMP ise newer than the online one:
This Server: [5.7.11] -- Package Server: [5.6.28]
I am stuck, I wonder what can I try
- The topic ‘'Invalid default value' = database install fail’ is closed to new replies.