

You will be asked to select an existing key pair or create a new key pair - it doesn't matter, we will be using a web based SSH client from AWS console to select any option. On the next screen confirm again by clicking Launch Click Review and launch as we are blasting through the complexity here and will take all the default setting and only change the few we need later. Assuming you are running a simple app then go for the cheapest instance: t3a.nano. Select the first one from the list: Amazon Linux 2 AMI for the 64-bit (x86) - basically the first default option That's it, we are ready to roll! Launch an EC2 instance Node js app in a git repo - make sure your Node app is ready and available to clone from a git repoĪWS account - if you don't have one yet, you can sign up here If you have answered the last question, then it’s done and you have secured the MySQL installation.Īfter that, you can connect to your mysql server by running this command.You need a few things before we start the launch: Question: Reload privilege tables now? Īnswer: Type ‘y’ and press enter. The choice is yours, but I suggest to delete the test database. If you want to keep the test database then type ‘n’ and press enter.

This will remove the test database and its access to users. Question: Remove test database and access to it? Īnswer: Type ‘y’ and press enter. Question: Remove anonymous user? Īnswer: type ‘y’ and press enter Question: Disallow root login remotely? Īnswer: type ‘y’ and press enter. Please provide a strong password and press enter. Question: Set Root password? Īnswer: Type here ‘y’ and then press enter. Question: Enter current password for root ( enter for none ) :Īnswer: Just press enter because there is not root password available as we just did the setup now. It will ask you a few questions, whose answers are given in my video tutorial, but I am writing it here as well.
