Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

nitro db import fails when the DB name contains a dash (escaping issue?) #212

@benface

Description

@benface

Description

When entering a DB name with a dash after Nitro asks to "Enter the database name to create for the import" (e.g. site-dev), it throws an error:

Importing a compressed DB backup (.sql.zip) as generated by Craft results in an error:

Uploading "site-dev.sql" into "nitro-dev" (large files may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-dev' at line 1

Error: exit status 1

Additional info

  • Nitro version: 1.0.1
  • Multipass version: 1.4.0+mac

Metadata

Metadata

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