皆様お世話になります。813です。

>>814 実施してみますとMariaDBは8秒程度でした。

シャットダウン時に表示する900秒遅延のエラーでネット検索しますと次の事例が見つかりました。

Starting or restarting MariaDB results in 900s timeout or hang
https://clients.websavers.ca/whmcs/knowledgebase/243/Starting-or-restarting-MariaDB-results-in-900s-timeout.html

そして「systemctl stop mysql」を実行するとコンソールの反応が無くなっていました。
従いまして「問題解決2」systemdのmysqlとmariadbのエイリアスを直してあげました。

systemctl stop mysql
systemctl stop mariadb
update-rc.d mysql remove ←chkconfigの代わり
systemctl disable mysql
systemctl disable mariadb
systemctl enable mariadb.service
systemctl start mariadb.service

その結果「systemctl stop mysql」もすんなり実行することができましたので、
遅延している原因が直ったと思います。
ありがとうございました。