• <i id='p5qeX'><tr id='p5qeX'><dt id='p5qeX'><q id='p5qeX'><span id='p5qeX'><b id='p5qeX'><form id='p5qeX'><ins id='p5qeX'></ins><ul id='p5qeX'></ul><sub id='p5qeX'></sub></form><legend id='p5qeX'></legend><bdo id='p5qeX'><pre id='p5qeX'><center id='p5qeX'></center></pre></bdo></b><th id='p5qeX'></th></span></q></dt></tr></i><div id='p5qeX'><tfoot id='p5qeX'></tfoot><dl id='p5qeX'><fieldset id='p5qeX'></fieldset></dl></div>
      <bdo id='p5qeX'></bdo><ul id='p5qeX'></ul>

    <tfoot id='p5qeX'></tfoot>

      <legend id='p5qeX'><style id='p5qeX'><dir id='p5qeX'><q id='p5qeX'></q></dir></style></legend>

      <small id='p5qeX'></small><noframes id='p5qeX'>

        尝试访问 phpmyadmin mb_detect_encoding 时出现 PHP 致命错误

        时间:2023-10-11
      1. <tfoot id='2SsKa'></tfoot>

          <small id='2SsKa'></small><noframes id='2SsKa'>

            <tbody id='2SsKa'></tbody>
          • <bdo id='2SsKa'></bdo><ul id='2SsKa'></ul>
          • <i id='2SsKa'><tr id='2SsKa'><dt id='2SsKa'><q id='2SsKa'><span id='2SsKa'><b id='2SsKa'><form id='2SsKa'><ins id='2SsKa'></ins><ul id='2SsKa'></ul><sub id='2SsKa'></sub></form><legend id='2SsKa'></legend><bdo id='2SsKa'><pre id='2SsKa'><center id='2SsKa'></center></pre></bdo></b><th id='2SsKa'></th></span></q></dt></tr></i><div id='2SsKa'><tfoot id='2SsKa'></tfoot><dl id='2SsKa'><fieldset id='2SsKa'></fieldset></dl></div>

                <legend id='2SsKa'><style id='2SsKa'><dir id='2SsKa'><q id='2SsKa'></q></dir></style></legend>

                  本文介绍了尝试访问 phpmyadmin mb_detect_encoding 时出现 PHP 致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  不确定发生了什么,但以下是尝试访问 phpmyadmin 时日志给我的内容,请帮助.试图调试一个不同的问题并遇到了这个问题.真的不可能恢复到它工作的时候.

                  Not sure what happened, but below is what the log is giving me when trying to access phpmyadmin, please help. Trying to debug a different problem and ran into this. Not really possible to revert back to when it was working.

                  PHP 致命错误:调用未定义的函数 mb_detect_encoding()/usr/share/php/gettext/gettext.inc 在第 177 行

                  PHP Fatal error: Call to undefined function mb_detect_encoding() in /usr/share/php/gettext/gettext.inc on line 177

                  尝试访问该站点时,出现此错误,我认为这两个错误可能相关:

                  When trying to go the the site, I get this error, I think it's likely the two errors are related:

                  数据库连接错误 (1):MySQL 适配器 'mysqli' 不可用.

                  Database connection error (1): The MySQL adapter 'mysqli' is not available.

                  推荐答案

                  第一个错误是由 php 引起的,因为扩展 mbstring 未安装或未激活.

                  First error is caused by php because the extension mbstring is either not installed or not active.

                  第二个错误是 phpMyAdmin/您的站点的输出,要求您安装/启用 mysqli 扩展.

                  The second error is output of phpMyAdmin/your site asking you to install / enable the mysqli extension.

                  要启用 mbstring 和 mysqli,请编辑您的 php.ini 并在 unix 上使用 mbstring.so 和 mysqli.so 或在 Windows 上使用 mbstring.dll 和 mysqli.dll 添加/取消注释这两行

                  To enable mbstring and mysqli edit your php.ini and add/uncomment the two lines with mbstring.so and mysqli.so on unix or mbstring.dll and mysqli.dll on windows

                  Unix/etc/(phpX/)php.ini

                  Unix /etc/(phpX/)php.ini

                  extension=mysqli.so
                  extension=mbstring.so
                  

                  Windows PHP 安装文件夹etcphp.ini

                  Windows PHP installation folderetcphp.ini

                  extension=mysqli.dll
                  extension=mbstring.dll
                  

                  不要忘记在此之后重新启动您的网络服务器.

                  Don't forget to restart your webserver after this.

                  用户在评论中补充说他使用的是 redhat 所以这里是你如何在所有基于 CentOS/Fedora/RedHat/Yum 的 Linux 发行版上安装扩展

                  User added he was using redhat in the comments so here's how you install extensions on all CentOS/Fedora/RedHat/Yum based linux distros

                  sudo yum install php-mysqli
                  sudo yum install php-mbstring
                  
                  restart your werbserver
                  sudo /etc/init.d/httpd restart
                  

                  您可以使用文档根目录中的一个小 php 脚本来验证您的安装.这列出了您为 php 安装的所有设置、版本和活动扩展

                  you can verify your installation with a little php script in your document root. This lists all settings, versions and active extensions you've installed for php

                  test.php

                  <?php
                  phpinfo();
                  

                  这篇关于尝试访问 phpmyadmin mb_detect_encoding 时出现 PHP 致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 phpMyAdmin 连接到外部服务器 下一篇:如何在 PHPMyAdmin 中为表设置默认排序(即始终为“主键 - 降序")

                  相关文章

                  <small id='qXEmM'></small><noframes id='qXEmM'>

                  <tfoot id='qXEmM'></tfoot>

                    <bdo id='qXEmM'></bdo><ul id='qXEmM'></ul>
                • <legend id='qXEmM'><style id='qXEmM'><dir id='qXEmM'><q id='qXEmM'></q></dir></style></legend>
                  <i id='qXEmM'><tr id='qXEmM'><dt id='qXEmM'><q id='qXEmM'><span id='qXEmM'><b id='qXEmM'><form id='qXEmM'><ins id='qXEmM'></ins><ul id='qXEmM'></ul><sub id='qXEmM'></sub></form><legend id='qXEmM'></legend><bdo id='qXEmM'><pre id='qXEmM'><center id='qXEmM'></center></pre></bdo></b><th id='qXEmM'></th></span></q></dt></tr></i><div id='qXEmM'><tfoot id='qXEmM'></tfoot><dl id='qXEmM'><fieldset id='qXEmM'></fieldset></dl></div>