Skip to content

Instantly share code, notes, and snippets.

@kapillamba4
Last active January 12, 2018 21:21
Show Gist options
  • Save kapillamba4/e1abe20b5cc45af1579712359a84ec80 to your computer and use it in GitHub Desktop.
Save kapillamba4/e1abe20b5cc45af1579712359a84ec80 to your computer and use it in GitHub Desktop.
sudo mysql_upgrade -u root
sudo mysql -u root
sudo systemctl status mariadb
sudo systemctl start mariadb
sudo systemctl stop mariadb
https://wiki.archlinux.org/index.php/MySQL#Unable_to_run_mysql_upgrade_because_MySQL_cannot_start
To Reload MySQL/MariaDB server:
# For Sysvinit Systems #
# service mysql reload
or
# /etc/init.d/mysql reload
# For Systemd Systems #
# systemctl reload mariadb.service
or
# systemctl reload mysql.service
or
# systemctl reload mariadb
or
# systemctl reload mysql
To view status of MySQL/MariaDB server:
# For Sysvinit Systems #
# service mysql status
or
# /etc/init.d/mysql status
# For Systemd Systems #
# systemctl status mariadb.service
or
# systemctl status mysql.service
or
# systemctl status mariadb
or
# systemctl status mysql
To Restart MySQL/MariaDB server
# For Sysvinit Systems #
# service mysql restart
or
# /etc/init.d/mysql restart
# For Systemd Systems #
# systemctl restart mariadb.service
or
# systemctl restart mysql.service
or
# systemctl restart mariadb
or
# systemctl restart mysql
To Enable MySQL/MariaDB server in boot:
# For Sysvinit Systems #
# chkconfig mysqld on
# For Systemd Systems #
# systemctl enable mariadb.service
or
# systemctl enable mysql.service
or
# systemctl enable mariadb
or
# systemctl enable mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment