Link to home
Start Free TrialLog in
Avatar of Jason Yu
Jason YuFlag for United States of America

asked on

cannot connect to mysql database on droplet server on port 3306

I can connect from local but cannot connect from my company.

I tried to use "telnet xxx.xxxx.xxx.xxx 3306" but got rejected. Is this the corporation firewall blocked my connection?

I am able to connect to the MYSQL RDS on Amazon AWS.
Avatar of Swadhin Ray
Swadhin Ray
Flag of United States of America image

Using SSH Tunneling you should be able to connect from your local .
Avatar of Jason Yu

ASKER

it's still not accessible, I used the following command to create the user account and assign privilege.


CREATE USER 'phpconnector'@'*' identified by 'XXXXX';
GRANT ALL PRIVILEGES ON user_login.* to 'phpconnector'@'*';
mysql> select Host,User,Select_priv from user;
+----------------+--------------+-------------+
| Host           | User         | Select_priv |
+----------------+--------------+-------------+
| localhost      | root         | Y           |
| localhost      | mysql.sys    | N           |
| localhost      | phpconnector | N           |
| 104.172.53.39  | jasonyu      | N           |
| 198.199.89.211 | phpconnector | N           |
| localhost      | yijiama      | Y           |
| 63.138.193.186 | phpconnector | N           |
| *              | phpconnector | Y           |
+----------------+--------------+-------------+
8 rows in set (0.00 sec)

mysql>
first you have to establish a connection
ASKER CERTIFIED SOLUTION
Avatar of Swadhin Ray
Swadhin Ray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think it's the corporate firewall blocked the connection.  Is there a way I can check where the traffice got blocked.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial