I’m trying to configure and connect to an AWS EC2 instance with MySQL Workbench, but the connection fails with Unable to connect to localhost displayed.
Connection Method: Standard (TCP/IP)
Hostname: AWS private IPv4 address
Port:8889
Username:root
From the terminal
mysql -u root -p -h xxx.xx.xx.xx –port=8889
It is possible to connect with the same IP and port.
MySQL Workbench
macOS (ARM, 64-bit), DMG Archive
8.0.36
I don’t know why I’m failing when trying to connect to localhost, which is not set as hostname.
back is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.