Connect to mysql on Amazon EC2 from a remote server
Change
/etc/mysql/my.cnf
Change /etc/mysql/my.cnf
And |
It could be that you have not configured the Amazon Security Group assigned to your EC2 Instance to accept incoming requests on port 3306 (default port for MySQL).
If this is the case then you can easily open up the port for the security group in a few button clicks:
1) Log into you AWS Console and go to 'EC2'
2) On the left hand menu under 'Network & Security' go to 'Security Groups'
3) Check the Security Group in question
4) Click on 'Inbound tab'
5) Choose 'MYSQL' from drop down list and click 'Add Rule'
Might not be the reason but worth a go...
Once, you are logged in, you need to create a new MySQL user. First, issue the following command to login with the root user mysql -u root -p
|
Comments
Post a Comment