Skip to content

Wrong version of mariadb (causing sql-import errors) #73

Open
@purdy

Description

@purdy

I have a .lando.yml file that specifies a version of MariaDB that matches what I run on production (10.11). MariaDB recently added a sandbox protection line in snapshots generated by mysqldump. However, when I try to import a snap from production, I get this error:

ERROR at line 1: Unknown command '\-'.

When I log onto the database service to inspect further, the sql-import refers to mysql, which is symlinked to mariadb and its version does not match what I specified in the yml file:

$ mariadb --version
mariadb  Ver 15.1 Distrib 10.5.26-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper
name: mysite
recipe: lamp
config:
  webroot: web
  php: 8.1
  database: mariadb:10.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions