title: MariaDB upgrade from 10.5 to 10.6: mysqli::real_connect(): (HY000/2002): No such file or directory
body: <p>I have a MariaDB 10.5 instance running on a OpenSUSE Leap 15.3 server (PHP 7.4.6).</p>
  <p>I'm not able to follow the <a href="https://mariadb.com/kb/en/upgrading-from-mariadb-105-to-mariadb-106/" rel="nofollow noreferrer">official upgrade documentation</a> for the installation was made through official SLE repositories (last available version still being 10.5) and not from MariaDB one. Then, here is what I have achieved so far:</p>
  <ul>
  <li>Import MariaDB repository key:</li>
  </ul>
  <p><code>rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB</code></p>
  <ul>
  <li>Add MariaDB specific repository for 10.6 version:</li>
  </ul>
  <p><code>sudo zypper addrepo --gpgcheck --refresh https://yum.mariadb.org/10.6/opensuse/15/x86_64 mariadb</code></p>
  <ul>
  <li>Install MariaDB 10.6:</li>
  </ul>
  <p><code>sudo zypper install MariaDB-server MariaDB-client</code></p>
  <ul>
  <li><p>Choose solution 1 being uninstalling 10.5 packages (when prompted)</p>
  </li>
  <li><p>Start <code>mariadb</code> service using <code>systemctl start mariadb</code>.</p>
  </li>
  </ul>
  <p>I then get the right version using <code>mariadb --version</code>.</p>
  <p>I'm now able to connect to mariadb locally using <code>mariadb -u root -p</code> and to list my databases.</p>
  <p>Issues are:</p>
  <ul>
  <li>I'm not able to connect to phpMyAdmin. Connection page is loading properly but I get the following error message:</li>
  </ul>
  <blockquote>
  <p>mysqli::real_connect(): (HY000/2002): No such file or directory</p>
  </blockquote>
  <ul>
  <li>My applications are not working. It seems there is a problem for connecting to MariaDB service. Example for GLPI:</li>
  </ul>
  <blockquote>
  <p>PHP Warning:  mysqli::real_connect(): (HY000/2002): No such file or directory in /var/www/glpi/src/DBmysql.php on line 248
  A link to the SQL server could not be established. Please check your configuration.</p>
  </blockquote>
  <p>Something was broken when reinstalling MariaDB and I can't find out where...</p>
  <hr />
  <p><strong>EDIT:</strong></p>
  <p>Here are some additional informations, based on @Georg Richter suggestion (see answers).</p>
  <p><a href="https://i.stack.imgur.com/8fmS8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8fmS8.png" alt="enter image description here" /></a></p>