
If, however, you do not want this feature (I won’t), just press Enter or any other key to skip using it.įor the other options, I suggest enabling them (typing in y or Y and pressing Enter for each of them). If successful, you’ll continue the securing process otherwise you’ll have to re-enter a password. If you think it might help, type in y or Y and press Enter, then choose a strength level for your password and input the one you want to use. If you don’t have the habit of using strong passwords (you should!), this could come in handy.

You won’t be able to input any password doesn’t respect the selected rules. If you want to use it, you’ll have to select a minimum password strength ( 0 – Low, 1 – Medium, 2 – High). That’s: sudo mysql_secure_installationĭoing so will first of all ask you if you want to use the VALIDATE PASSWORD COMPONENT.

If you don’t, use the following command to start the service: sudo systemctl start rvice Configuring/Securing MySQLįor a new install, you should run the provided command for security-related updates. You should see Active: active (running) in there somewhere. Use the down arrow to select the Ok option.

To actually install MySQL, we’ll use the same command as in the first method: sudo apt install mysql-server -yĭoing so will open a prompt in your terminal for package configuration. Update your repositories: sudo apt update Let’s use dpkg to start installing MySQL: sudo dpkg -i mysql-apt-config* It might be different based on the current version of MySQL. We’ll use Curl command to the download the package: curl -OL Scroll down past the info about Oracle Web and right-click on No thanks, just start my download. Here, go down to the download link for the DEB Package. The first step is browsing to the download page of the official MySQL website. Installing MySQL using the official repositoryĪlthough this method has a few more steps, I’ll go through them one by one and I’ll try writing down clear notes. Now, to install MySQL 5.7, simply type: sudo apt install mysql-server -y Installing MySQL from the Ubuntu repositoriesįirst of all, make sure your repositories are updated by entering: sudo apt update
