ubuntu restart mariadb

C++
systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
Source

Also in C++: