To upgrade using the custombuild script, do the following:
cd /usr/local/directadmin/custombuild
./build set mysqlmariadb 5.6
./build set mysql_inst mysqlmariadb
./build set mysql_backup yes
./build update
./build mysqlmariadb
Where mysql can be 5.1, 5.5, 5.6, 5.7 or 8.0.Where mariadb can be 5.5, 10.0, 10.1, 10.2, 10.3, or 10.4
A full raw sql backup will be run prior to the upgrade if you have mysql_backup=yes set. It goes without saying, always make backups, either with this tool, or with other means.