Databases & passwords
Manage each site's database, change its password, and export it.
How per-site database isolation works
MariaDB is bound strictly to localhost via zz-rustiron-loopback.cnf (zero external TCP listeners on port 3306). Each WordPress site gets its own database (rs_<site_id>_wp) and least-privilege user with credentials stored in a 0400 db.cnf file readable only by that site’s PHP user. EmDash CMS apps use local WAL-mode SQLite databases with native FTS5 inside their confined data/ directory.
Rotate a MariaDB password with zero secret exposure
site-credential-rotate generates a new high-entropy password locally inside the executor, updates MariaDB, atomically swaps the site’s db.cnf, and restarts the site’s PHP pool — so the password never touches plans, logs, shell history, or the browser.
rustiron plan create site-credential-rotate \ --site-id wpblog \ --hostname blog.example.com \ --out-dir ./plans/wpblog-rotateExport a clean SQL dump safely offline
Rather than exposing phpMyAdmin on the public internet, extract consistent SQL dumps directly from any verified restic backup snapshot on your operator workstation.
restic -r <repo> dump <snapshot_id> /db.sql.zst | zstd -d > ./wpblog-dump.sql