I’m trying to export a database from a DDEV project, however running into various problems.
I’ve tried ddev poweroff
and starting the one project.
Option 1 - Method one phpMyAdmin
Using Export > Quick Method.
A .sql file is produced but only has insert statements (missing create table statements, this is strange as it’s been working up until now.)
Option 2 - Using mysqldump on the command line:
ddev mysqldump -udb -pdb -x -A > /Users/me/dbs.sql;
This produces a dbs.sql file however has the following error:
mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied;
you need (at least one of) the RELOAD privilege(s) for this operation (1227)
Failed to execute command mysqldump -udb -pdb -x -A: exit status 2
Option 3 - ddev export-db Just get a screen full of nonsense (see below) and no .sql file. DDEV logs does not seem to give any clues.
Any help would be appreciated.