Configuring Remote Access for MySQL on Linux
By default, MySQL is set up to accept connections only from localhost (127.0.0.1). If you want to allow connections from external IP addresses, you need to modify MySQL’s configuration and grant appropriate privileges.