You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("unable to snapshot database, \nyour db container in project %v is not running. \nPlease start the project if you want to snapshot it. \nIf deleting project, you can delete without a snapshot using \n'ddev delete --omit-snapshot --yes', \nwhich will destroy your database", app.Name)
2107
2107
}
2108
2108
2109
+
// For versions less than 8.0.32, we have to OPTIMIZE TABLES to make xtrabackup work
2110
+
// See https://docs.percona.com/percona-xtrabackup/8.0/em/instant.html and
Cmd: `set -eu -o pipefail; MYSQL_PWD=root mysql -e 'SET SQL_NOTES=0'; mysql -N -uroot -e 'SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLES WHERE TOTAL_ROW_VERSIONS > 0;'`,
2116
+
})
2117
+
iferr!=nil {
2118
+
util.Warning("could not check for tables to optimize (mysql 8.0): %v (stdout='%s', stderr='%s')", err, stdout, stderr)
2119
+
} else {
2120
+
stdout=strings.Trim(stdout, "\n\t ")
2121
+
tables:=strings.Split(stdout, "\n")
2122
+
// util.Success("tables=%v len(tables)=%d stdout was '%s'", tables, len(tables), stdout)
2123
+
iflen(stdout) >0&&len(tables) >0 {
2124
+
for_, t:=rangetables {
2125
+
r:=strings.Split(t, `/`)
2126
+
iflen(r) !=2 {
2127
+
util.Warning("unable to get database/table from %s", r)
0 commit comments