MaríaDB es un sistema de gestión de bases de datos derivado de MySQL. Este artículo trata los comandos que permiten arrancar, parar, reiniciar, activar y recargar un servidor linux de MariaDB.
1) Arrancar el servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # service mysql start o # /etc/init.d/mysql start # --- Para sistemas Systemd --- # # systemctl start mariadb.service o # systemctl start mysql.service o # systemctl start mariadb o # systemctl start mysql
2) Parar el servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # service mysql stop o # /etc/init.d/mysql stop # --- Para sistemas Systemd --- # # systemctl stop mariadb.service o # systemctl stop mysql.service o # systemctl stop mariadb o # systemctl stop mysql
3) Reiniciar el servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # service mysql restart o # /etc/init.d/mysql restart # --- Para sistemas Systemd --- # # systemctl restart mariadb.service o # systemctl restart mysql.service o # systemctl restart mariadb o # systemctl restart mysql
4) Recargar el servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # service mysql reload o # /etc/init.d/mysql reload # --- Para sistemas Systemd --- # # systemctl reload mariadb.service o # systemctl reload mysql.service o # systemctl reload mariadb o # systemctl reload mysql
5) Ver el estado del servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # service mysql status o # /etc/init.d/mysql status # --- Para sistemas Systemd --- # # systemctl status mariadb.service o # systemctl status mysql.service o # systemctl status mariadb o # systemctl status mysql
6) Activar en el arranque el servidor MySQL/MariaDB
# --- Para sistemas Sysvinit --- # # chkconfig mysqld on # --- Para sistemas Systemd --- # # systemctl enable mariadb.service o # systemctl enable mysql.service o # systemctl enable mariadb o # systemctl enable mysql
Be the first to comment