Skip to content

Instantly share code, notes, and snippets.

@lfalanga
Last active March 5, 2020 01:03
Show Gist options
  • Save lfalanga/5f6f185acb1b624e4d173ef54e1a6f55 to your computer and use it in GitHub Desktop.
Save lfalanga/5f6f185acb1b624e4d173ef54e1a6f55 to your computer and use it in GitHub Desktop.
# Install MySQL Server
sudo apt-get update
sudo apt-get install mysql-server
# Launch the MySQL Secure Installation
# This utility prompts you to define the mysql root password and other
# security-related options, including removing remote access to the root user
# and setting the root password.
sudo mysql_secure_installation utility
# Start MySQL Service
sudo systemctl start mysql
# Launch and reboot MySQL Service
sudo systemctl enable mysql
# Restart MySQL Service
sudo systemctl restart mysql
# Making a link to phpMyAdmin directory
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment