A schema file in version control shows me what changed between two releases of an app. mysqldump can write one for MySQL and MariaDB.
mysqldump --no-data --routines --skip-dump-date mydb > schema.sql
--no-data writes the CREATE statements and no rows. --skip-dump-date removes the timestamp from the last line of the file, so running the dump twice on an unchanged database gives identical files and a clean git diff.
Triggers come with the table definitions, but stored routines only appear when you add --routines. Auto-increment counters can still show up as changed lines in the CREATE TABLE statements.
Further reading: MySQL Reference Manual: mysqldump