• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Question How to assign databases to a domain manually

onki

Regular Pleskian
Server operating system version
ubuntu 20.04
Plesk version and microupdate number
17.8
Hi,

Is there a procedure to assign a database manually to a domain?
There are several databases on my Plesk server that are not assigned to a domain and so the cannot be found easily.

Best regards
Onki
 
Hi,
If a database is created via Plesk and registered in Plesk under a subscription, you can link DB to a domain as follows:
- browse to Domain > Databases page in Plesk
- there is a drop-down menu 'Related to' against databse name
- select a domain that you would like to link with a particular database

If a database is created directly in SQL console and Plesk is not aware of its existence you can try the following:
- create a dump of the database
- delete it from the server
- then log into Plesk, browse to subscription you need, databases and create a database with the same name
- use Import Database option to import data
Screenshot 2023-02-28 at 17.32.33.png
For this procedure, I would recommend to test it with some dummy database first.
Also, you can avoid removal of existing database, just create dump, create a new database in Plesk with new name and import data
 
Side question: Which reason is there to use "Assign this database to a site"? Is it only for keeping track and not get confused? I have a database which is used by a subdomain, but in /smb/database/list/ is shown "Assign this database to a site". Can I change this assignments which any technical consequences to the site?
 
Back
Top