[英]Phpmyadmin page won't load
I'm working on a login page in VSC.我正在 VSC 中处理登录页面。 The codes I'm trying to use are PHP and MYSQL.我尝试使用的代码是 PHP 和 MYSQL。 PHP is working just fine, but I can't open phpmyadmin to start working on the MySQL portion. PHP 工作得很好,但我无法打开 phpmyadmin 来开始处理 MySQL 部分。
I've searched for answers in the other forums, but none of the solutions have worked.我在其他论坛中搜索过答案,但没有一个解决方案有效。 I don't see any errors when I start Apache and MySQL on XAMPP.在 XAMPP 上启动 Apache 和 MySQL 时,我没有看到任何错误。 When I look in the logs, I see that it says "FEEDBACK is disabled" But that's about it.当我查看日志时,我看到它说“反馈已禁用”但仅此而已。
I think I know why this is happening.我想我知道为什么会这样。 On XAMPP, I changed the ports for Apache and MySQL.在 XAMPP 上,我更改了 Apache 和 MySQL 的端口。 It was the only way I could view webpage on localhost.这是我可以在本地主机上查看网页的唯一方法。 Apache's SSL port is 4443 and the main port is 8080. MySQLs main port is 3306. Apache的SSL端口是4443,主端口是8080,MySQL的主端口是3306。
Will phpmyadmin not work unless I change the port numbers back?除非我改回端口号,否则 phpmyadmin 会不会工作? Or is there something else I'm missing?或者还有什么我想念的吗?
The log is below日志如下
3:04:20 PM [main] Windows Version: Home 64-bit
3:04:20 PM [main] XAMPP Version: 8.0.10
3:04:20 PM [main] Control Panel Version: 3.3.0 [ Compiled: Apr 6th 2021 ]
3:04:20 PM [main] Running with Administrator rights - good!
3:04:20 PM [main] XAMPP Installation Directory: "c:\xampp\"
3:04:20 PM [main] Checking for prerequisites
3:04:20 PM [main] All prerequisites found
3:04:20 PM [main] Initializing Modules
3:04:20 PM [main] Starting Check-Timer
3:04:20 PM [main] Control Panel Ready
3:04:24 PM [Apache] Attempting to start Apache service...
3:04:25 PM [Apache] Status change detected: running
3:04:27 PM [mysql] Attempting to start MySQL service...
3:04:28 PM [mysql] Status change detected: running
3:09:45 PM [main] Executing "services.msc"```
The file name should be config.inc.php Default path:文件名应该是 config.inc.php 默认路径:
/etc/phpmyadmin/config.inc.php
Or if you install phpmyadmin using yum in RHEL/CentOS it could be:或者,如果您在 RHEL/CentOS 中使用 yum 安装 phpmyadmin,它可能是:
/etc/phpMyAdmin/config.inc.php
The line should be something like that这条线应该是这样的
$cfg['Servers'][$i]['port'] = '';
Just add the new MySQL port between the single quotes只需在单引号之间添加新的 MySQL 端口
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.