question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Single quotes added to filename on wp-cli db import/export.

See original GitHub issue

Describe the bug When I export a database, the filename is created enclosed by single quotes: 'db.sql'. For importing it only works with the single quotes arround the filename and extension too.

Steps to Reproduce

  1. Run 10updocker wp export {dbfilename}.sql

Expected behavior It’s expected to have your database exported without single quotes around the filename, and to be able to import databases without adding single quotes too.

Environment information

  • Device: Desktop Computer
  • OS: Windows 10 Pro 19041.329

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
eugene-manuilovcommented, Aug 13, 2020

Awesome, @allysonsouza! Please, keep in mind that @next means it’s not ready yet to be published as a new stable version. So, use it at your risk or downgrade to the current stable version.

0reactions
allysonsouzacommented, Aug 13, 2020

Thanks @nicholasio and @eugene-manuilov, I tested here and the problem is solved in the @next version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using WP-CLI to import a remote database - J. Michael Ward
Normally, when you export a database using the wp db export command, it writes a file to the directory from which you called...
Read more >
WP-CLI – Page 10 – The command line interface for WordPress
WP -CLI is the official command line tool for interacting with and ... use of WP-CLI's database management features: wp db export ,...
Read more >
Using WP-CLI With Your WordPress Optimized Template Site
Back Up A Database. One particularly useful WP-CLI command allows you to easily back up the WordPress database: wp db export.
Read more >
passwords with single quotes breaks wp-config.php · Issue #93
php file with a password containing single quotes, the resulting wp-config.php file is invalid and produces a PHP syntax error. Describe how ...
Read more >
Working with the bcp Command-line Utility - Simple Talk
By using the utility, you can export data from a SQL Server database into a data file, import data from a data file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found