Category: Laravel, PHP, MySQL

In this Article , We will Learn How to deploy a laravel project on AWS EC2 (Elastic Cloud Computing ) Instance . Now copy the IPv4 Public IP Address of your EC2 instance and hit on the browser.

This will install mysql server but this will not prompt anything to configure mysql .

In order to use a password to connect to MySQL as root, you will need to switch its authentication method from auth_socket to mysql_native_password by using following commands.

Then, run FLUSH PRIVILEGES which tells the server to reload the grant tables and put your new changes into effect: Now You are done with setting up your mysql server on your EC2.

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners