• 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.

Issue Access to a database from another plesk server

SalvadorS

Regular Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.62 #2
Hello everybody,

I need to access to a plesk database of one domain hosted in one server from another domain in another server with plesk.

In the destination server (the server where I need to access to de database) I went to Tools & Settings > Database Servers > Settings > and click on the Local MySQL Settings and check that "Allow remote connections from any host" is enabled.

I went to the destination database and I allow connections from the IP of the server I want to access from.

Then I modify

/etc/mysql/my.cnf (I am under debian)

And

/etc/mysql/mariadb.conf.d/50-server.cnf

I changed

bind-address = 127.0.0.1

to

bind-address = 127.0.0.1,x.x.x.x

Where x.x.x.x is the IP of the server I want to access from

Restart mysql. But it doesnt work

It is only working if I set bind-address to 0.0.0.0

But I don´t want to open the whole server, only to x.x.x.x

What I am doing wrong?
 
bind-address is used to configure to which IP MariaDB (or MySQL) listen to. It can only listen to IP addresses which are present at the network interface of the server (or 127.0.0.1 to listen locally or 0.0.0.0 to listen to all). Not to remote IP's.

If you want to limit connections from one source IP only you can consider creating a firewall rule to only allows traffic from one specific IP on the MaraiDB port (3306).
 
Back
Top