Remote Access Configuration MySQL Configuration File Locations Ubuntu/Debian /etc/mysql/my.cnf CentOS/RHEL /etc/my.cnf Edit MySQL config sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf Find: bind-address = 127.0.0.1 Change to: bind-address = 0.0.0.0 Restart MySQL: sudo systemctl restart mysql Open firewall port sudo ufw allow 3306