Here at Pythian we like to pay attention to what brings people to
our site, and one of the main queries we’ve been seeing is “How
can I allow a remote MySQL database connection?” Since our
mission is to help you love your data, we asked Matthias
Crauwels, Lead Database Consultant on one of Pythian’s MySQL
teams to address this topic. Over to Matthias!
I’m hoping this may be the start of a series of posts where I can
share some common MySQL knowledge in a (hopefully) clear and
understandable manner. So let’s get started.
Technical requirements
Historically MySQL allows a client to connect in two different
ways. You can either use a local socket solution (on a Linux/Unix
system this is called a Unix socket, whereas on Windows systems
it’s a named pipe) or via a TCP connection to a listening port
(by default 3306).
Since the introduction of MySQL 8.0, a third way is also
available using a newer …
[Read more]