Installing mySQL on AWS

Problem
You've got a bare-bones server and need to get mySQL install on it. The following is what did (and didn't work for me)

The Easy Bit
apt-get update 
sudo apt-get install mysql-client 
sudo apt-get install mysql-server 

sudo mysql_secure_installation utility

What Didn't work!
I read so many "helpful" tips online.....



What eventually worked 
It was as simple as using sudo to access mySQL.



Now Get started 


This bit is important!

create user 'newuser'@'localhost' identified by 'yourpassword'; 
GRANT ALL PRIVILEGES ON epicdb.* TO 'newuser'@'localhost'; 

Acknowledgement
https://linuxize.com/post/how-to-create-mysql-user-accounts-and-grant-privileges/

Comments