• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved 3306 port is not accessible - how to fix it ?

Sergey K.

Basic Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
Version 18.0.55 Update #2, last updated on Oct 8, 2023 04:15 PM
Hi, dear Community!
I've got 2 dedicated servers: CentOS + Plesk Obsidian - direct access to DB by port worked
I've migrated to new dedicated server: Ubuntu + Plesk Obsidian Version 18.0.55 Update #2

for new server - Done:
1) Firewall port rule was added
2) IPban - my IP was added to the Trusted IP
3) DB user with access by IP was disabled (for test) done

When I try to test with Telnet site.com 3306 - I've got refuse connection: "Could not open connection to the host, on port 3306: Connect failed"

Sorry for the stupid question: have I missed something to grant access to DB 3306 port ?


Ubuntu-3306.jpg
 
Last edited by a moderator:
Which MariaDB version are you using on your new server and what is the content of the line "bind-address" in /etc/my.cnf on the new server? That line should either be "bind-address = ::" for MariaDB versions prior 10.6 or it must not exist at all for versions 10.6 or later, if you want to access the database server from a non-localhost ip address. Please remember to restart the MariaDB service after editing /etc/my.cnf.
 
Thanks for your advice - solved.

How to fix direct access to 3306 (short manual)

1. Go to /etc/mysql/my.cnf
2. Change parameter to: bind-address = ::
3. Restart DB server: sudo service mysqld restart
4. Done. Direct access to port 3306 is available.
4.1 Don't forget to add "Allow remote connections from", where is your IP in your DB user connection settings

Thanks again for your time and advices.
 
Back
Top