Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1Īfter choosing the policy level, you can now set your new root password: Please set the password for root here. STRONG Length >= 8, numeric, mixed case, special characters and dictionary file MEDIUM Length >= 8, numeric, mixed case, and special characters There are three levels of password validation policy: Which means the password must consist of numeric, mixed case, and special characters and the password length must be equal or greater than 8. You can choose the level of policy you like to use, for the purpose of this tutorial we will choose option “1”. The next prompt will ask for the policy level that you would like to use. Press y|Y for Yes, any other key for No: Y Would you like to setup VALIDATE PASSWORD component? It checks the strength of passwordĪnd allows the users to set only those passwords which are VALIDATE PASSWORD COMPONENT can be used to test passwordsĪnd improve security. The first prompt is about the Validate Password Component, which we will install to ensure that all MySQL users follow the policy for complex passwords. This will start the script which will prompt a series of questions to configure the MySQL passwords and security on that instance. ![]() To run the security script, execute this command on your terminal: sudo mysql_secure_installation ![]() We will configure MySQL and enhance its security with the mysql_secure_installation script. To verify if the installation has been successful and if MySQL is running on your server, you can execute the following command: sudo systemctl status mysql You can simply start the MySQL installation with the command: sudo apt-get install mysql-server Sudo apt-get upgrade Step 2: Installing MySQL Step 1: Log in to the Server & Update the Server OS PackagesĪs always, first log in to your VPS via SSH: ssh you are in, run the following commands to update the package index and upgrade all the installed packages to the latest available version. ![]() Access to the root user account (or a user with sudo privileges).For the purposes of this tutorial, we will use an Ubuntu20.04 VPS.Step 4: Creating MySQL User and Database.Step 1: Log in to the Server & Update the Server OS Packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |