Skip to content

Instantly share code, notes, and snippets.

@badhonhitech
Created December 7, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badhonhitech/b950a3f2a9492f6992f9d1cd3d101d89 to your computer and use it in GitHub Desktop.
Save badhonhitech/b950a3f2a9492f6992f9d1cd3d101d89 to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt upgrade
mysql --version
sudo apt install mariadb-server
sudo mysql_secure_installation
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Enter password
Re-enter new password: Repeat password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
sudo systemctl start mariadb.service
sudo systemctl status mariadb.service
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo systemctl restart mariadb.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment