简体   繁体   English

在 XAMPP 中更新 php 版本后,我在 http://localhost/phpmyadmin/ 中遇到致命错误

[英]After updating php version in XAMPP I'm facing Fatal Error in http://localhost/phpmyadmin/

For the New Laravel project , I need to update the PHP version using XAMPP , After the update, the PHP version and apache folder when I start apache and MySQL from the XAMPP control panel this working but I open localhost/phpmyadmin/ it shows me fatal error and doesn't show the database. For the New Laravel project , I need to update the PHP version using XAMPP , After the update, the PHP version and apache folder when I start apache and MySQL from the XAMPP control panel this working but I open localhost/phpmyadmin/ it shows me fatal错误并且不显示数据库。

Fatal error: Uncaught mysqli_sql_exception: You are not using binary logging in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php:199 Stack trace: #0 C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php(199): mysqli->query('SHOW MASTER LOG...', 0) #1 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(316): PhpMyAdmin\Dbi\DbiMysqli->realQuery('SHOW MASTER LOG...', Object(mysqli), 1) #2 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(1869): PhpMyAdmin\DatabaseInterface->tryQuery('SHOW MASTER LOG...', 256, 1, false) #3 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(573): PhpMyAdmin\DatabaseInterface->fetchResult('SHOW MASTER LOG...', 'Log_name', NULL, 256, 1) #4 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(107): PhpMyAdmin\Menu->_getServerTabs() #5 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(70): PhpMyAdmin\Menu->_getMenu() #6 C:\xampp\phpMyAdmin\libraries\classes\Header.php(445): PhpMyAdmin\Menu->getDisplay() #7 C:\xampp\phpMyAdmin\libraries\classes\Response.php(323): PhpMyAdmin\Header->getDisplay() #8 C:\xampp\phpMyAdmin\libraries\classes\Response.php(336): PhpMyAdmin\Response->_getDisplay() #9 C:\xampp\phpMyAdmin\libraries\classes\Response.php(495): PhpMyAdmin\Response->_htmlResponse() #10 [internal function]: PhpMyAdmin\Response->response() #11 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199

I feel the main issue is that your tried to upgrade only php instead of the whole Xampp Bundle.我觉得主要问题是您尝试仅升级 php 而不是整个 Xampp Bundle。 Either you should install complete xampp again or you should upgrade phpMyAdmin manually too as this will fix the php compatibility issues.您应该再次安装完整的 xampp,或者您也应该手动升级 phpMyAdmin,因为这将解决 php 的兼容性问题。

I had this exact same issue and I have spent many hours trying to figure this out, so it is as simple as this.我遇到了完全相同的问题,我花了很多时间试图解决这个问题,所以就这么简单。

Once you have upgraded your php. (In my case I upgraded to php 8.1.10)升级 php 后。(在我的例子中,我升级到 php 8.1.10)

  • Make a copy of your phpMyAdmin folder renaming it different than the current value that it has.复制您的 phpMyAdmin 文件夹,将其重命名为不同于它的当前值。
  • Download phpMyAdmin 5.2.0 or higher.下载phpMyAdmin 5.2.0 或更高版本。
  • Unzip the file, and then copy it into your xampp folder replacing the old phpMyAdmin folder.解压缩文件,然后将其复制到您的 xampp 文件夹中,替换旧的 phpMyAdmin 文件夹。
  • Inside the new folder create the file config.inc.php and paste inside there the data that is in config.inc.php located in your old phpMyAdmin folder.在新文件夹中创建文件 config.inc.php 并将位于旧 phpMyAdmin 文件夹中的 config.inc.php 中的数据粘贴到其中。
  • Thats it!就是这样!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM