-
Notifications
You must be signed in to change notification settings - Fork 0
MySQL
sudo apt update && sudo apt upgrade -y
sudo apt install gnupg wget -y
You can download another version of MySQL form here
# Example link, you put your link after wget
wget https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb
Run your dpkg package with the -i
flag, that indicates that you’d like to install from the specified file and *
char depends all files that's name start from mysql-apt-config
sudo dpkg -i mysql-apt-config*
When you see screen with MySQL and MySQL tools select menu, select mysql-8 and press ENTER, press TAB and ENTER.
sudo apt update
sudo apt install mysql-server -y
During installation, you must set root account password and select authentication plugin. I recommend Strong password encryption
sudo mysql --version
sudo mysql_secure_installation
During installation, you need to configure the password validation level, choose whether you want to change the root password (if set), delete anonymous users or not, prohibit remote root login, delete the test database and reload the permissions.
I recommend: 2, No (if set), Yes, Yes, Yes, Yes