• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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