Debian / Ubuntu:

  • service mysql restart

CentOS 7 and later:

  • systemctl enable mariadb.service
  • systemctl start mariadb.service

CentOS 6 and earlier, Fedora, and Redhat:

  • chkconfig mysqld on
  • service mysqld start