How to connect my ubuntu 16.04 vm to mysql database of another server?

Posted March 13, 2019 577 views
Ubuntu 16.04 Databases

VIrtual Machine Ubuntu 16.04

Details of the “another server” (Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1065 aws ec2 server)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer


I found a tutorial for this here:

It basically comes down to two steps, and that guide covers them well:

  1. Bind MySQL to instead of
  2. Create or edit MySQL user to be a remote user (ex. ‘user’@'ipaddress’)


Submit an Answer