المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : حل مشكلة فشل نقل قواعد البيانات DO NOT transfer from MariaDB to MySQL



Rise Company
28-12-2023, 01:17
حل مشكلة فشل نقل قواعد البيانات DO NOT transfer from MariaDB to MySQL
cpanel account transfers failing: ERROR: Failed to dump one or more databases
حل مشلكة The remote MySQL dump failed because of an error (WebSocket 1011, 58eaht)
DO NOT transfer from MariaDB to MySQL

https://www.rise.company/upload/uploads/170371925855391.png

We are trying to migrate from a 60+ account server:
CentOS 7.9 cPanel 106 MariaDB 10.3
To a new server with:
AlmaLinux v8.7 cPanel 106 MySQL 8.0
Assuming that since MySQL is the default option for new cPanel installs and MariaDB option is no longer present, it would be a better tech stack for cPanel support in the long term. Thoughts?
However, the Transfer Tool throws 90+ warnings for DB restores
Would an upgrade to MariaDB 10.5 or 10.6 be more compatible for backup/restore?
Any recommendations?
Log example:
RESTORE: Account “###”: Warnings
Removed empty DB for failed restore of “###”.
The system has saved the database archive data in the directory “/home/###/cpmove_failed_mysql_dbs.###”. You may use this directory’s contents to restore your data manually.
Removed empty DB for failed restore of “###”.
Failed to write to DBI subprocess: Bad file descriptor

We went with MariaDB in the first place for performance and to support the more open source project, but I assumed that was better to migrate back when I noticed that it's no longer really "select MariaDB when installing", like it was in previous cPanel versions, it's now a "pre-configuration (https://support.cpanel.net/hc/en-us/articles/360052635434-How-to-customize-the-version-of-MySQL-or-MariaDB-used-when-installing-cPanel-for-the-first-time)".

They deliberately removed that feature and made MySQL the default, no way around it after install, the user will face the problem and need to reinstall.
For me that's a clear statement, but the more I read about it (https://forums.cpanel.net/threads/careful-when-migrating-from-6-to-8-serious-complications.698993/), it seems they just made bad choices.

Like the "warning" of not being able to restore a DB from an account in Transfer Tool, that's an error, huge, not a warning.
More now that the "Live Transfer" is the default option, with no easy way to disable it in bulk.
We got 100+ websites live, after the transfer, 90% of them didn't work.
We did a rollback using this script (https://features.cpanel.net/topic/suspendunsuspend-multiple-accounts#comment-56373) to "unsuspend" all accounts in the previous server.
Terrible experience.
We will probably reinstall with MariaDB instead of trying to fix this, and keep testing cPanel alternatives.
(several with webmin and one with cyberpanel, still using cpanel for shared hosting servers)



المرجع:
https://apps.cpanel.net/threads/do-not-transfer-from-mariadb-to-mysql.707921/
https://serverfault.com/questions/497745/cpanel-account-transfers-failing-error-failed-to-dump-one-or-more-databases
https://support.cpanel.net/hc/en-us/community/posts/19628368193687--case-106345-Problem-in-restoring-the-account-or-transfer-tool-from-other-server