MariaDB ignores binlog_format
"Global" settings are initial values for when you login.  You failed to log out and log back in, hence it still said STATEMENT.

/etc/ is a place for configuration-like stuff, not for basedir.

/usr does not seem right for basedir, either.  Perhaps /usr/mysql or /usr/mariadb?