Symptoms
-
The database list cannot be opened in Tools & Settings > Database servers. Plesk provides error like below:
PLESK_ERROR: Type GraphQL Error
Message Dependent row(s) 'Domains.id = 783' isn't found for 'data_bases.dom_id = 783'. -
Plesk
psa
database contains the rows about the databases that are related to the domain with id from the error message:MYSQL_LIN: MariaDB [psa]> select * from data_bases where dom_id = 783 ;
+-----+----------+-------+--------+--------------+-----------------+-------------+
| id | name | type | dom_id | db_server_id | default_user_id | external_id |
+-----+----------+-------+--------+--------------+-----------------+-------------+
| 337 | example1 | mysql | 783 | 1 | NULL | NULL |
| 338 | example2 | mysql | 783 | 1 | NULL | NULL |
+-----+----------+-------+--------+--------------+-----------------+-------------+
2 rows in set (0.001 sec) -
But the "domains" table does not contain the record with this ID:
MYSQL_LIN: MariaDB [psa]> select name from domains where id = 783;
Empty set (0.000 sec)
Cause
Inconsistency in the Plesk database.
Resolution
-
Connect to the server via SSH.
-
Connect to the Plesk
psa
database:# plesk db
-
Remove the records from the
data_bases
table (using thedom_id
from the error):MYSQL_LIN: delete from data_bases where dom_id = 783;
Comments
0 comments
Please sign in to leave a comment.