I have Rstudio and RMySQL package installed on my local system and i want to connect to my test server database hosted on AWS EC2. I am using the followinf command:
mysqlconnection = dbConnect(MySQL(), user='root', password='*****',
dbname='sakila', host='ec2-55-231-255-3.compute-1.amazonaws.com',port=1234)
but it gives error that cant connect to database. It is working all right for localhost. Please suggest what needs to be done.