

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y This will remove anonymous user, disallow root user login remotely and remove test database. Next, you will be asked a series of questions. Press Y to continue: Please set the password for root here.ĭo you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y The password should be strong and should have minimum 8 characters. Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0 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: Here, I choose low level password validation by entering zero (0). The available password validations are low, medium and strong. Press y|Y for Yes, any other key for No: yĬhoose the level of password validation. 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. Next, setup MySQL root user password by running the following command: $ sudo mysql_secure_installationĮnter "y" to setup VALIDATE PASSWORD component: Securing the MySQL server deployment.Ĭonnecting to MySQL using a blank password. Ruby on Rails uses mysql2 gem to connect to MySQL when you setup a Rails application. The libmysqlclient-dev package provides the necessary files to compile the mysql2 gem.
#Ruby on rails install#
To install MySQL on Debian, Ubuntu and its derivatives, run: $ sudo apt install mysql-server mysql-client libmysqlclient-dev
