BCS Blog

COBOL, z/OS performance measurement, and systems programming updates.

Open Portal

Dump User Databases

By Arch Brooks on January 18, 2026 in Programming

# Get list of non-system databases and dump them
mysql -u root -p -N -e "SHOW DATABASES;" | \
  grep -Ev '(information_schema|performance_schema|mysql|sys)' | \
  xargs mysqldump -u bcs -p --databases > user_databases_only.sql

Notice none of the system / mysql tables are included.


Views: 24 | Permalink: https://bcs.archman.us/blog.php?slug=dump-user-databases


Comments

S
Sam Bouie Jan 21, 2026 09:33

Nice how all the gook is sifted out.

S
Sal Mineo Jan 21, 2026 09:34

Yep good job.

S
Sal Mineo Jan 21, 2026 09:35

rap 1

S
Sal Mineo Jan 21, 2026 09:35

th 01