简体   繁体   English

XAMPP 和 MySql 的问题

[英]Issue with XAMPP and MySql

I am facing a problem pretty common, I have installed MySql Server because in the past I developed an CRUD app by using Java Swing and Maven, and now I am trying to create same thing, a CRUD app only this time with PHP.我面临一个很常见的问题,我安装了 MySql Server,因为过去我使用 Java Swing 和 Maven 开发了一个 CRUD 应用程序,现在我正在尝试创建同样的东西,一个 CRUD 应用程序,只是这次使用 PHP。

I am following a tutorial from Udemy and this guy is using XAMPP to launch both an Apache Server and a MySQL.我正在学习 Udemy 的教程,这个人正在使用 XAMPP 来启动 Apache 服务器和 MySQL。 But somehow it's interfering with the one already installed on my laptop and cannot make the connection with XAMPP.但不知何故,它干扰了我笔记本电脑上已经安装的那个,并且无法与 XAMPP 建立连接。

I opened my.ini and where says password i put my own from MySQL Workbench, and I see it's using the same port 3306 but still cannot work and I dont know why.我打开了 my.ini,哪里说密码是我从 MySQL Workbench 中输入的,我看到它使用相同的端口 3306,但仍然无法工作,我不知道为什么。

Is there any solution to modify my.ini and establish the connection without uninstalling the MySql Server installed before, because if I do that I ruin the other Java app using it.是否有任何解决方案可以在不卸载之前安装的 MySql Server 的情况下修改 my.ini 并建立连接,因为如果我这样做,我会破坏使用它的其他 Java 应用程序。

Could you please provide the error logs?你能提供错误日志吗? So the problem can be identified properly.因此可以正确识别问题。 By default, you can get the logs file for Apache in \\xampp\\apache\\logs\\error.log默认情况下,您可以在\\xampp\\apache\\logs\\error.log获取 Apache 的日志文件

And for PHP here \\xampp\\php\\logs对于这里的 PHP \\xampp\\php\\logs

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

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