{"id":2746,"date":"2026-03-31T20:49:51","date_gmt":"2026-03-31T20:49:51","guid":{"rendered":"https:\/\/www.serverspan.com\/blog\/"},"modified":"2026-03-31T20:53:54","modified_gmt":"2026-03-31T20:53:54","slug":"tutorial-how-to-use-mariadb-11-4-with-a-legacy-directadmin-environment-on-debian-the-sysadmin-way","status":"publish","type":"post","link":"https:\/\/www.serverspan.com\/en\/blog\/tutorial-how-to-use-mariadb-11-4-with-a-legacy-directadmin-environment-on-debian-the-sysadmin-way\/","title":{"rendered":"Tutorial: How to use MariaDB 11.4 with a legacy DirectAdmin environment on Debian, the sysadmin way"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If your DirectAdmin server cannot cleanly move to MariaDB 11.4 through CustomBuild, but you still need MariaDB 11.4 on the box, the safe manual model is straightforward: let Debian manage MariaDB 11.4, let DirectAdmin behave only as a client through <code>da_admin<\/code>, and remove the stale service files, binaries, and socket assumptions that collide with the new server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is not the preferred path on a modern DirectAdmin build. If your server can use current CustomBuild normally, use that. This guide is for the edge case where the panel layer is older, pinned, partially migrated, or otherwise constrained, while the operating system and database layer still need to move forward cleanly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The good news is that MariaDB\u2019s side of the process is well documented and predictable. The difficult part is not MariaDB 11.4 itself. The difficult part is integrating a modern MariaDB package set into a legacy DirectAdmin environment without letting older service definitions, wrapper binaries, or socket expectations interfere.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The working model is simple: Debian owns MariaDB, DirectAdmin connects to it through <code>da_admin<\/code>, and legacy leftovers do not get to control anything anymore.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you manage older panel servers regularly, this tutorial fits naturally beside ServerSpan\u2019s <a href=\"https:\/\/www.serverspan.com\/en\/blog\/directadmin-legacy-license-july-2026-mariadb-10-6-eol-migration-options\/\">DirectAdmin Legacy License ends July 2026: what\u2019s changing, the MariaDB 10.6 EOL trap, and your migration options<\/a> and <a href=\"https:\/\/www.serverspan.com\/en\/blog\/mariadb-vs-mysql-8-0-performance-benchmarks-configuration-guide-for-vps\/\">MariaDB vs. MySQL 8.0: Performance Benchmarks &amp; Configuration Guide for VPS<\/a>. If you need a clean server for this kind of work, start with <a href=\"https:\/\/www.serverspan.com\/en\/virtual-servers\">ServerSpan Virtual Servers<\/a>. If you want the database layer kept sane by someone else, that is where <a href=\"https:\/\/www.serverspan.com\/en\/linux-administration\">ServerSpan Linux Administration<\/a> becomes the sensible option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When this guide actually makes sense<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use this guide when all of the following are true:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>you are on Debian or Ubuntu, or another Debian-style DirectAdmin host<\/li>\n\n\n\n<li>MariaDB 11.4 is required on the system now<\/li>\n\n\n\n<li>you are not taking the normal CustomBuild route for the database layer<\/li>\n\n\n\n<li>DirectAdmin still needs to create users, databases, and grants through <code>da_admin<\/code><\/li>\n\n\n\n<li>you are prepared to validate the migration like a sysadmin, not like someone hoping the panel saves them<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Do not use this guide on a fresh DirectAdmin deployment that already supports MariaDB 11.4 through the standard path. And do not use it on a server where you are not ready to make and verify backups first. Major MariaDB downgrade is not something you should treat as easy or routine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before you touch anything: understand the model<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The typical failure mode in legacy DirectAdmin database stacks is not that MariaDB 11.4 is unstable. In most cases, the database layer behaves exactly as documented. The friction comes from package mixing and older DirectAdmin-era assumptions that were never cleaned up.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>new MariaDB 11.4 packages are installed from the MariaDB APT repository<\/li>\n\n\n\n<li>old MySQL or MariaDB binaries still exist under <code>\/usr\/local\/<\/code><\/li>\n\n\n\n<li>a stale custom <code>mysqld.service<\/code> still lives under <code>\/etc\/systemd\/system\/<\/code><\/li>\n\n\n\n<li>old socket paths are still hardcoded in scripts or client defaults<\/li>\n\n\n\n<li>DirectAdmin keeps talking to the wrong binary, the wrong socket, or the wrong account<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The fix is not clever. It is disciplined. Freeze DirectAdmin monitoring, back up the datadir, stop every process that can still touch the database files, remove stale service and path collisions, install a clean MariaDB 11.4 package set, run the real upgrade tool, restore compatibility where needed, keep DirectAdmin on <code>da_admin<\/code>, and only then turn the panel back loose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 0: freeze DirectAdmin\u2019s MySQL service monitor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you replace or restart anything, stop DirectAdmin from trying to \u201chelp\u201d by restarting the wrong database service while you are working.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i -e 's\/mysqld=ON\/mysqld=OFF\/g' \/usr\/local\/directadmin\/data\/admin\/services.status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This matters because DirectAdmin monitors service state through that file. If you leave monitoring enabled during a manual database migration, the panel can interfere with shutdown, startup, or failure handling at exactly the wrong moment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 1: back up the datadir before doing anything destructive<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Do not skip this. Back up the whole datadir before you clean up binaries, wrappers, or service units. If the data matters, your rollback plan is the backup you made before the upgrade, not wishful thinking afterward.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -a \/var\/lib\/mysql \/var\/lib\/mysql.pre-mariadb-11.4.$(date +%F-%H%M%S)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the database is large, use a more serious backup method than <code>cp -a<\/code>. The principle does not change. Backup first. Cleanup second. Upgrade third.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 2: stop everything that can still own the datadir<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You need a genuinely clean stop. That means packaged service names, legacy helper names, and any leftover processes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop mysqld 2&gt;\/dev\/null || true\nsystemctl stop mysql 2&gt;\/dev\/null || true\nsystemctl stop mariadb 2&gt;\/dev\/null || true\n\nservice mysqld stop 2&gt;\/dev\/null || true\nservice mysql stop 2&gt;\/dev\/null || true\nservice mariadb stop 2&gt;\/dev\/null || true\n\npkill -TERM mysqld 2&gt;\/dev\/null || true\npkill -TERM mariadbd 2&gt;\/dev\/null || true\nsleep 3\n\npkill -KILL mysqld 2&gt;\/dev\/null || true\npkill -KILL mariadbd 2&gt;\/dev\/null || true\nsleep 2\n\nps -ef | egrep 'mariadbd|mysqld' | grep -v grep<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If that last command prints anything, you are not ready to continue. Stop there and resolve the live process first. Do not upgrade a datadir that is still being touched by something you did not intend to keep alive.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 3: remove stale systemd units and PATH shadowing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is one of the ugliest parts of older DirectAdmin database stacks. A stale <code>\/etc\/systemd\/system\/mysqld.service<\/code> or an old wrapper in <code>\/usr\/local\/bin<\/code> can keep pointing at a dead MySQL or MariaDB tree even after you installed MariaDB 11.4 correctly from packages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MariaDB itself is not the problem there. The problem is that the host still contains older service plumbing that no longer belongs in the active stack.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Archive old custom service files first:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/root\/old-systemd-units\nmv \/etc\/systemd\/system\/mysqld.service \/root\/old-systemd-units\/mysqld.service.$(date +%F-%H%M%S) 2&gt;\/dev\/null || true\nmv \/etc\/systemd\/system\/mysql.service  \/root\/old-systemd-units\/mysql.service.$(date +%F-%H%M%S) 2&gt;\/dev\/null || true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then archive wrappers or shadow binaries under <code>\/usr\/local\/bin<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/root\/old-mysql-bin\nmv \/usr\/local\/bin\/mariadb-upgrade \/root\/old-mysql-bin\/ 2&gt;\/dev\/null || true\nmv \/usr\/local\/bin\/mariadb         \/root\/old-mysql-bin\/ 2&gt;\/dev\/null || true\nmv \/usr\/local\/bin\/mysql           \/root\/old-mysql-bin\/ 2&gt;\/dev\/null || true\nmv \/usr\/local\/bin\/mysql_upgrade   \/root\/old-mysql-bin\/ 2&gt;\/dev\/null || true\nhash -r<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now verify what the shell will really use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type -a mariadb mariadb-upgrade mysql mysql_upgrade\n\/usr\/bin\/mariadb --version\n\/usr\/bin\/mariadb-upgrade --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After this step, the live client tools should come from <code>\/usr\/bin<\/code>, not from leftovers under <code>\/usr\/local\/bin<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 4: add the MariaDB 11.4 repository and install 11.4 cleanly<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MariaDB\u2019s documented Linux upgrade flow is clear and consistent. The cleanest approach here is to follow that package model directly and keep the version set matched.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Clear conflicting repository files first, then configure the official MariaDB 11.4 repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -f \/etc\/apt\/sources.list.d\/*mariadb*.list \/etc\/apt\/sources.list.d\/*mariadb*.sources 2&gt;\/dev\/null || true\n\ncurl -LsS https:\/\/r.mariadb.com\/downloads\/mariadb_repo_setup | bash -s -- \\\n  --mariadb-server-version=\"mariadb-11.4\"\n\napt update\napt-cache policy mariadb-server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the candidate version is not 11.4, stop and fix the repository before installing anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then install a matched 11.4 package set:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ver=\"$(apt-cache madison mariadb-server | awk '\/11\\.4\/{print $3; exit}')\"\necho \"$ver\"\n\napt install -y \\\n  mariadb-server=\"$ver\" \\\n  mariadb-client=\"$ver\" \\\n  mariadb-server-core=\"$ver\" \\\n  mariadb-client-core=\"$ver\" \\\n  mariadb-common=\"$ver\" \\\n  libmariadb3=\"$ver\" \\\n  mariadb-backup=\"$ver\" \\\n  galera-4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The version pinning is not decoration. It reduces the chance of package skew and makes the install easier to reason about later if something still looks off.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 5: start the real MariaDB 11.4 server and run the real upgrade tool<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the packaged server is installed, start the actual Debian-managed service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl daemon-reload\nsystemctl enable mariadb\nsystemctl start mariadb\nsystemctl status mariadb --no-pager -l<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>mariadb.service<\/code> does not come up cleanly here, stop and fix that first. Do not run the upgrade utility against a broken or half-started service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then run the upgrade tool explicitly from <code>\/usr\/bin<\/code>, not from whatever your shell happens to find first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If local root uses socket authentication, which is normal on Debian-family MariaDB installs, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/mariadb-upgrade \\\n  --no-defaults \\\n  --protocol=socket \\\n  --socket=\/run\/mysqld\/mysqld.sock \\\n  --user=root \\\n  --force<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If your local root still uses a password, add <code>-p<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/mariadb-upgrade \\\n  --no-defaults \\\n  --protocol=socket \\\n  --socket=\/run\/mysqld\/mysqld.sock \\\n  --user=root \\\n  -p \\\n  --force<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The explicit path and explicit socket are important because old defaults, old wrappers, or old socket assumptions are exactly what create confusion in legacy panel environments. MariaDB\u2019s own side of the process is more predictable than the surrounding leftovers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 6: restore service-name compatibility without reviving the wrong service<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On a clean Debian MariaDB install, the real service is <code>mariadb.service<\/code>. Older tooling may still ask for <code>mysqld<\/code> or <code>mysql<\/code>. The safe fix is not to restore an old unit. The safe fix is to alias the old names to the real service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/lib\/systemd\/system\/mariadb.service \/etc\/systemd\/system\/mysqld.service\nln -s \/lib\/systemd\/system\/mariadb.service \/etc\/systemd\/system\/mysql.service\n\nsystemctl daemon-reload\nsystemctl reset-failed mariadb mysqld mysql 2&gt;\/dev\/null || true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The goal is simple: one real service, older names resolving cleanly to it, no custom unit left behind that points at stale binaries.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 7: fix socket compatibility<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Newer DirectAdmin builds moved the preferred socket path toward <code>\/run\/mysql\/mysql.sock<\/code>, while older clients and scripts often still expect <code>\/var\/lib\/mysql\/mysql.sock<\/code> or the traditional <code>\/run\/mysqld\/mysqld.sock<\/code>. The practical answer on a manual Debian-based deployment is not to move the real socket. It is to give older callers compatibility paths.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/run\/mysql\nln -sfn \/run\/mysqld\/mysqld.sock \/run\/mysql\/mysql.sock\nln -sfn \/run\/mysqld\/mysqld.sock \/var\/lib\/mysql\/mysql.sock<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That keeps both newer and older callers happy without changing where the real server listens.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 8: keep DirectAdmin on <code>da_admin<\/code>, not MariaDB root<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is where the integration becomes clean again. DirectAdmin should use <code>da_admin<\/code> through <code>\/usr\/local\/directadmin\/conf\/mysql.conf<\/code>. It should not depend on MariaDB root for ordinary panel operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/usr\/local\/directadmin\/conf\/mysql.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It should look like this in principle:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user=da_admin\npasswd=YOUR_DA_DB_PASSWORD<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to reset the account inside MariaDB:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/mariadb --protocol=socket --socket=\/run\/mysqld\/mysqld.sock<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER USER 'da_admin'@'localhost' IDENTIFIED BY 'daadminpass';\nGRANT ALL PRIVILEGES ON *.* TO da_admin@localhost WITH GRANT OPTION;\nFLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then update <code>\/usr\/local\/directadmin\/conf\/mysql.conf<\/code> to match and test it directly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/mariadb \\\n  --protocol=socket \\\n  --socket=\/run\/mysqld\/mysqld.sock \\\n  -uda_admin -p \\\n  -e \"SHOW DATABASES;\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If that works, DirectAdmin-side database connectivity is in good shape.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also check for conflicting local defaults such as <code>\/root\/.my.cnf<\/code> if DirectAdmin still behaves strangely. Hidden client overrides are a classic cause of misleading authentication failures.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 9: understand <code>root<\/code>, <code>debian-start<\/code>, and <code>unix_socket<\/code> before \u201cfixing\u201d them<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Do not delete <code>\/etc\/mysql\/debian-start<\/code>. Do not delete helper scripts just because they produce a warning you do not like. Debian-family MariaDB installs commonly use <code>unix_socket<\/code> authentication for <code>root@localhost<\/code>, which means local root access works through the Unix user identity instead of a database password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That does not break DirectAdmin, because DirectAdmin should still use <code>da_admin<\/code>. These are separate concerns:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>local Linux root can keep local MariaDB root access through socket auth<\/li>\n\n\n\n<li>DirectAdmin keeps using <code>da_admin<\/code> from <code>mysql.conf<\/code><\/li>\n\n\n\n<li>those two models do not need to be merged<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If local root socket auth is working, test it directly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/mariadb --protocol=socket --socket=\/run\/mysqld\/mysqld.sock -e \"SELECT VERSION();\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If local root works and <code>da_admin<\/code> works, leave it alone. There is no reason to manufacture extra complexity around database root unless your environment explicitly requires it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Phase 10: re-enable DirectAdmin monitoring<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Only re-enable monitoring after all of these are true:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>mariadb.service<\/code> is healthy<\/li>\n\n\n\n<li>the compatibility service names resolve cleanly<\/li>\n\n\n\n<li>the socket compatibility links exist<\/li>\n\n\n\n<li><code>da_admin<\/code> can connect successfully<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i -e 's\/mysqld=OFF\/mysqld=ON\/g' \/usr\/local\/directadmin\/data\/admin\/services.status\nsystemctl restart directadmin<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Final verification checklist<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now run a short, boring checklist. Boring is exactly what you want here.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status mariadb --no-pager -l\nsystemctl is-active mariadb mysqld mysql\nps -ef | egrep 'mariadbd|mysqld' | grep -v grep\nss -xl | grep mysql\n\ntype -a mariadb mariadb-upgrade mysql mysql_upgrade\n\n\/usr\/bin\/mariadb --protocol=socket --socket=\/run\/mysqld\/mysqld.sock -e \"SELECT VERSION();\"\n\/usr\/bin\/mariadb --protocol=socket --socket=\/run\/mysqld\/mysqld.sock -uda_admin -p -e \"SHOW DATABASES;\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the results show all of the following, the migration is done:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>mariadb.service<\/code> is active<\/li>\n\n\n\n<li><code>mysqld<\/code> and <code>mysql<\/code> resolve cleanly as compatibility names<\/li>\n\n\n\n<li>there is exactly one live <code>mariadbd<\/code><\/li>\n\n\n\n<li>the server version is <code>11.4.x<\/code><\/li>\n\n\n\n<li><code>da_admin<\/code> can connect and list databases<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What not to do<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Do not mix old DirectAdmin-era client tools in <code>\/usr\/local\/bin<\/code> with Debian-packaged MariaDB 11.4 tools in <code>\/usr\/bin<\/code>.<\/li>\n\n\n\n<li>Do not keep an old custom <code>\/etc\/systemd\/system\/mysqld.service<\/code> once the real MariaDB package is installed.<\/li>\n\n\n\n<li>Do not edit <code>\/usr\/local\/directadmin\/conf\/my.cnf<\/code> and expect it to stay that way.<\/li>\n\n\n\n<li>Do not delete Debian helper scripts just to hide warnings you do not understand.<\/li>\n\n\n\n<li>Do not assume rollback from a failed major upgrade is easy without a real pre-upgrade backup.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The theme is always the same: ambiguity is what breaks these servers. Remove ambiguity, and MariaDB 11.4 behaves much more like the clean packaged server it is supposed to be.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bottom line<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The sysadmin path here is not elegant, but it is reliable: freeze DirectAdmin monitoring, back up the datadir, stop every process that can still touch the database files, remove stale service files and wrapper binaries, install a matched MariaDB 11.4 package set, start the real Debian-managed service, run the real <code>\/usr\/bin\/mariadb-upgrade<\/code>, restore compatibility for service names and sockets, keep DirectAdmin on <code>da_admin<\/code>, and only then hand control back to the panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That gets you MariaDB 11.4 on a legacy DirectAdmin environment without waiting for CustomBuild to rescue a server that no longer fits the clean path. It also gives MariaDB what it generally likes best: a clean package-managed deployment, a predictable service model, and fewer legacy surprises around it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you would rather not do this by hand on a production host, use <a href=\"https:\/\/www.serverspan.com\/en\/directadmin-management\">DirectAdmin Management<\/a> or <a href=\"https:\/\/www.serverspan.com\/en\/linux-administration\">Linux Administration<\/a> and keep the box boring for the right reasons.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your DirectAdmin server cannot cleanly move to MariaDB 11.4 through CustomBuild, but you still need MariaDB 11.4 on the box, the safe manual model is straightforward: let Debian manage MariaDB 11.4, let DirectAdmin behave only as a client through da_admin, and remove the stale service files, binaries, and socket assumptions that collide with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[15236,15240,15239,15245,15234,15246,15243,15227,15249,15235,15229,15241,15232,15231,15247,15226,15244,15233,15228,15242,15237,15238,15230,15248],"class_list":["post-2746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-run-mysql-mysql-sock-directadmin","tag-run-mysqld-mysqld-sock-mariadb","tag-debian-mariadb-11-4-upgrade-runbook","tag-directadmin-custombuild-mariadb-11-4-edge-case","tag-directadmin-da_admin-mariadb-connection","tag-directadmin-da_admin-password-reset","tag-directadmin-legacy-mariadb-migration","tag-directadmin-mariadb-manual-upgrade","tag-directadmin-mariadb-service-alias-fix","tag-directadmin-mysqld-service-legacy-cleanup","tag-directadmin-non-standard-database-deployment","tag-directadmin-old-mysql-wrappers","tag-directadmin-old-mysqld-service-fix","tag-install-mariadb-11-4-debian-directadmin","tag-legacy-directadmin-database-server-cleanup","tag-legacy-directadmin-mariadb-11-4","tag-mariadb-11-4-apt-repo-debian","tag-mariadb-11-4-legacy-panel-server","tag-mariadb-11-4-on-directadmin","tag-mariadb-11-4-without-custombuild","tag-mariadb-socket-compatibility-directadmin","tag-mariadb-upgrade-directadmin-server","tag-mysql-conf-da_admin-directadmin","tag-unix_socket-mariadb-root-debian"],"_links":{"self":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2746"}],"version-history":[{"count":2,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2746\/revisions"}],"predecessor-version":[{"id":2751,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2746\/revisions\/2751"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2749"}],"wp:attachment":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}