当我尝试访问 Phpmyadmin 时,我的 XAMPP Apache 端口会自动更改

发布于 2025-01-13 17:49:41 字数 473 浏览 3 评论 0原文

所以,一开始,我的 XAMPP 工作时没有这样的问题

注意,我已将端口更改为 8080,因为我无法访问默认端口 80。当我尝试访问 localhost:8080/phpmyadmin/ 时,Apache ports 自动更改为

在此处输入图像描述

我认为 XAMPP 将我重定向到正确的端口,因此我尝试访问 localhost:50007/phpmyadmin/,但仍然无法正常工作任何一个。重新安装 XAMPP 应用程序是解决此问题的唯一方法吗?

So, at the first, my XAMPP is working no problem like this
enter image description here

Note that I have change the port to 8080 because I can't access the default port 80. And when I tried to access localhost:8080/phpmyadmin/ the Apache ports changes automatically into this

enter image description here

I thought that XAMPP redirect me to the right port, so i tried to access localhost:50007/phpmyadmin/, and i still didn't work either. Does reinstalling XAMPP app is the only solution to this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

剩余の解释 2025-01-20 17:49:42

试试这个,这个方法对我有效

  1. 第一步,你进入xampp/mysql文件夹
  2. 将文件夹xampp/mysql/data重命名为xampp/mysql/data_old
  3. 新建文件夹xampp/mysql/data
  4. 复制xampp/mysql中的所有文件/backup 文件夹复制到刚刚创建的 xampp/mysql/data 文件夹中
  5. 将 data_old 中所有现有数据库文件夹复制到 data 文件夹中(除了 MySQL、performance_schema 和 6.phpMyAdmin 文件夹)
    然后将data_old文件夹中的ibdata1文件复制并替换到data文件夹中
  6. 返回MySQL on XAMPP
  7. 完成

Try this, this method works on me

  1. The first step, you enter the xampp/mysql folder
  2. Rename the folder xampp/mysql/data to xampp/mysql/data_old
  3. Create a new folder xampp/mysql/data
  4. Copy all files in the xampp/mysql/backup folder into the xampp/mysql/data folder you just created
  5. Copy all existing database folders in the data_old into the data folder (except MySQL, performance_schema, and 6. phpMyAdmin folders)
    Then copy and replace the ibdata1 file in the data_old folder into the data folder
  6. return MySQL on XAMPP
  7. finish
情绪失控 2025-01-20 17:49:42

我遇到了XAMPP的端口自动更改的情况,经过调查,我发现根本原因与我的项目代码最近的更改有关。

事实证明,我最近所做的修改中存在编码错误。为了解决这个问题,我系统地注释掉了最近的代码更改,并观察到端口更改问题已解决。

看来代码更改无意中导致了端口的自动调整。通过识别并解决编码问题,意外的端口更改已成功缓解。

我希望这段经验可以帮助其他面临类似挑战的人,以确保其本地开发环境的稳定性。

I encountered a situation where XAMPP's port was changing automatically, and after investigating, I found that the root cause was related to recent changes in my project's code.

It turned out that there was a coding bug in the recent modifications that I made. To troubleshoot the issue, I systematically commented out the recent code changes and observed that the port-changing problem was resolved.

It appears that the code changes were inadvertently causing the automatic adjustment of the port. By identifying and addressing the coding issue, the unexpected port changes were successfully mitigated.

I hope this experience helps others facing similar challenges in ensuring the stability of their local development environments.

莫多说 2025-01-20 17:49:42

重新安装 XAMPP 将不起作用。它说某个进程正在端口 8080 上运行。因此您可以结束该进程或更改 apache XAMPP 的端口

我将为您提供第一个解决方案

的进程列表

,因此 netstat -ano 将给出带有 PID < a href="https://i.sstatic.net/ckukM.png" rel="nofollow noreferrer">输入图片此处描述

现在找到端口 8080 并终止该进程

netstat -ano |查找字符串:8080

现在记下 PID 并使用您的 运行以下命令

taskkill /PID /F

reinstalling XAMPP will not work. it's saying that some process is running on port 8080. so you can end that process or change port of apache XAMPP

I will give you the first solution

so netstat -ano will give a list of processes with PID

enter image description here

now find port 8080 and kill the process

netstat -ano | findstr :8080

now note that PID and run the below command with your <PID>

taskkill /PID /F

夜无邪 2025-01-20 17:49:42

我昨天遇到了同样的问题,看来您需要增加 memory_limitupload_max_filesizepost_max_size 中的值>C:\xampp\php\php.ini(或安装 XAMPP 的任何位置)。

请参阅https://stackoverflow.com/a/78530868/5139414

I ran into the same issue just yesterday, it seems that you'll need to increase the value of memory_limit, upload_max_filesize and post_max_size in C:\xampp\php\php.ini (or wherever you installed XAMPP).

See https://stackoverflow.com/a/78530868/5139414

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文