Skip to content

Differences in database dump from new installs. #155

@dhruvkb

Description

@dhruvkb

Since new installations of meta-environment using VVV install newer versions of Ubuntu, MariaDB and mysqldump, taking a fresh database export gives a different output. For example, importing the file

meta-environment/wordpressorg.test/provision/wordpressorg_dev.sql

and exporting using mysqldump produces lots of insignificant differences:

  1. The metadata at the top is different. Eg:
--- MySQL dump 10.16  Distrib 10.1.44-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19  Distrib 10.4.19-MariaDB, for debian-linux-gnu (x86_64)
 --
 -- Host: localhost    Database: wordpressorg_dev
 -- ------------------------------------------------------
--- Server version      10.1.44-MariaDB-0ubuntu0.18.04.1
+-- Server version      10.4.19-MariaDB-1:10.4.19+maria~bionic
  1. Numbers are not quoted in the new export. Eg:
-  `user_id` int(10) NOT NULL DEFAULT '0',
+  `user_id` int(10) NOT NULL DEFAULT 0,
  1. DEFAULT NULL is added to some columns. Eg:
-  `description` text,
+  `description` text DEFAULT NULL,

What's the recommended way to proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions