Error in .local(drv, ...) :
Failed to connect to database: Error: Access denied for user 'xxxx'@'pool-xxx-xx-xx-xx.bltmmd.fios.verizon.net' (using password: NO)
Other info -
Operating system - macOS Monterey (Version 12.5)
R Studio version - 4.0.2 (2020-06-22)
dplyr version - 1.0.9
RMySQL version - 0.10.21
DBI version - 1.1.3
Any help/ideas/suggestions on how to fix this will be much appreciated.
Did you checked this solution from PilarRius--
1-
username="root"
password= "YOUR_PASSWPRD"
As in no need to put the actual password, only copy "YOUR_PASSWORD"
2-If still doen´t work remove database
3-Check that your IP address is added to the server permissions/security
4-Check that the DB is available and public connection is allowed
5-If using Windows allow connections to the port 3306 on the Firewall Defender(control panel, security, firewall defender, advanced setting, add inbound rule, port, 3306, allow)
@SPratap Thanks. Yes I saw that and i did try 1 and 2, but still getting the same error. Unfortunately I'm not sure how to check #3. Currently researching that now.
It seems remote access is not allowed or at least not with password authentication. Have you opened the port for your MySQL server (usually 3306) in the AWS security settings for your EC2 instance? Have you configured your MySQL server to allow for password authentication from remote connections?
Sorry, I'm not aware of any specific step by step guide for this, when I forget how to do this sort of thing I simply "Google" something like "how to open ports on AWS EC2?"
I don't remember how to do this with MySQL because I haven't use it in many years, but I do remember that it doesn't allow remote passwords autentication by default.