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.
Newsletter

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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners