• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

How to share mysql db between domains?

J

jackop

Guest
I created a mysql db in domain A, and I now want to access it from domain B.
How can I do that?
 
Are the domains on the same server? If not you will need to modify the "mysql" database entries on the target server to allow remote access.

Log in to mysql as admin and run the following commands:

use mysql;

update user set Host = '%' where User = 'TargetDB_Username';

update db set Host = '%' where Db = 'TargetDB_Database';

flush privileges;

Also make sure the 3306 port is open on the firewall, at least for the connecting IP. :D
 
Back
Top