• 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 Restoring a site breaks VIEWS defined in MySQL

carini

Basic Pleskian
Server operating system version
Plesk Obsidian v18.0.59_build1800240229.10
Plesk version and microupdate number
Ubuntu 20.04.6 LTS
After restoring a site through function Tools & Settings -> Backup Manager -> and then restore i find that the content of the original view is destroyed and also the permission is now set to "
Code:
DEFINER=`backup_AOjmJQR`@`%`
" thus preventing the right user to accessing or modifying the view.

Code:
MySQL [scibile-db3]> SHOW CREATE VIEW `dom_list`;
+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+
| View     | Create View                                                                                                                                                                                                                                                         | character_set_client | collation_connection |
+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+
| dom_list | CREATE ALGORITHM=UNDEFINED DEFINER=`backup_AOjmJQR`@`%` SQL SECURITY DEFINER VIEW `dom_list` AS select 1 AS `changetype`,1 AS `changedate`, ...  | utf8                 | utf8mb4_general_ci   |
+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+
1 row in set, 1 warning (0.001 sec)

It's just me or something similar happens also to other. Is using MySQL views legit under Plesk?
 
Addendum:

Problem does not belong to restore, as find in backup dumps the view went corrupted during backup phase:

Code:
DROP TABLE IF EXISTS `dom_list`;
/*!50001 DROP VIEW IF EXISTS `dom_list`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `dom_list` AS SELECT
 1 AS `changetype`,
  1 AS `changedate`,
  1 AS `cname`,
[...]

I think that is a mayor problem because it means that 1+ year of backup can't be restore safely

Note: BTW the field
Code:
1 AS `changetype`,
IS NOT the original/correct statement.
 
Would you care to open a bug report for it (or open a support ticket for investigation on your server)?
 
Plesk support replies in a way that, sincerely, leave me perplexed:

Support request Id #95245922:
Mysqldump does not dump the INFORMATION_SCHEMA database by default. As of MySQL 5.1.38, mysqldump dumps INFORMATION_SCHEMA if you name it explicitly on the command line, although currently, you must also use the --skip-lock-tables option. Before 5.1.38, mysqldump silently ignores INFORMATION_SCHEMA even if you name it explicitly on the command line

Although the reply is technically correct I'm quite dissatisfied. It means that any site using VIEW in his database can't be safely restored. The query used to create a view can be retrieved and saved by using "SHOW CREATE VIEW". backing up views should be possible without too much effort.
 
Back
Top