Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Errors restoring database. utf8mb4 & utf8 (no replies)

$
0
0
Hi there guys, I am running WAMP server 3.0.4 32 bit on Windows 10 x64 (Apache 2.4.18 mysql 5.7.11 php 7.0.4) as a development platform with Wordpress. Periodically a backup is made out of the WAMP local install and a restore is performed onto the live server with no problems at all.

After a while I have discovered that the live server has a server connection collation set to utf8_general_ci, while WAMP's is set to utf8mb4_unicode_ci. Also I have discovered the Wordpress database contains tables with mixed collations and charset (utf8 & utf8mb4).

Yesterday after months of usage I have attempted to restore locally on WAMP a backup made from the live server, however the restore partially failed with a lot of errors.

What is preventing the restore?

I have also added the following to my.ini

[wampmysqld]
max_allowed_packet = 256M
sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION


This is an error example:

********************************************************************************
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

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>