phpmyadmin 可在 Ubuntu 20.04 上适用于 php 5.6 和 7.2

phpmyadmin 可在 Ubuntu 20.04 上适用于 php 5.6 和 7.2

我正在使用 Ubuntu 20.04,安装了多个 PHP 版本(5.6 - 8.0),因为我需要同时使用 Magento 1 和 2。当我切换到 7.2 并在 URL 中打开 PHPMyAdmin 时,它可以正常工作。

但是当我尝试切换到 PHP 5.6 并刷新 URL 中的 PHPMyAdmin 页面时,页面变为空白。我尝试了一些解决方案(如附件所示),但没有效果。

# Copyright (c) 2016, 2021, Oracle and/or its affiliates.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is also distributed with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation.  The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have included with MySQL.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

[mysqld]
collation-server = utf8_unicode_ci
character-set-server = utf8
default-authentication-plugin=mysql_native_password

my.cnf 更改

mysql> 
mysql> use mysql;
Database changed
mysql> 
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root@123';

mysql 更改

然后我重新启动了 MySql 和 Apache2。您能在这方面帮助我吗?

提前致谢。

相关内容