<p><b><u>Problem</u></b></p><p>The mysqli_real_connect(): (HY000/2002): No such file or directory error is unfortunately a known issue since the QNAP QTS5 update.</p><p><img src="https://api.paperoffice.ai/latest/knowledge/image/15/e138ef1a5f1f5bb474056cf343646d3f6c523ad955b7482e5fbbd5c9ad019852" data-filename="01-error.jpg" xss="removed"></p><p><br></p><p><b><u>Fix</u></b></p><p><b xss="removed">Important</b>, make sure that you are logged in as admin user and have the Text Editor app installed on your QNAP NAS.</p><p><span xss="removed">Open "File Station" and navigate to <i>"DataVol/Web/phpMyAdmin"</i>.</span></p><p><img src="https://api.paperoffice.ai/latest/knowledge/image/15/05ca875f45ce93a0d1d6100e8090e93fc7fcbdb07573b037b94b191afd794a21" data-filename="02-filestation.jpg" xss="removed"><span xss="removed"><br></span><br></p><p>Right click on "config.inc.php" file and "Open with Text Editor"</p><p><img src="https://api.paperoffice.ai/latest/knowledge/image/15/aa31ab22aa490a28df157395ed5c01f21bc2d52b8eabdcbfddfa226aab8a485f" data-filename="03-texteditor.jpg" xss="removed"></p><p><br></p><p>Go to the line 31 and change <span xss="removed"><b>$cfg['Servers'][$i]['host'] = 'localhost'</b>;</span> to <span xss="removed"><b>$cfg['Servers'][$i]['host'] = '127.0.0.1';</b></span><br></p><p><img src="https://api.paperoffice.ai/latest/knowledge/image/15/4a07d0fc3e6e1cd4d268fe9a47f4a0e30045063e73a149a4e52f4dd6e7c5ad1e" data-filename="04-config-from.jpg" xss="removed"><br></p><p><br></p><p>After editing the file click on "File -> Save" to save the changes.</p><p><img src="https://api.paperoffice.ai/latest/knowledge/image/15/e4c1c3d82f8d77001bfac0a6c6bf4053ef0757502a4312652514848ea5a4568e" data-filename="04-config-to.jpg" xss="removed"><br></p><p><br></p><p>Wait 30 seconds, and now you should be able to login to phpMyAdmin.<br></p><p><br></p>