已安装 apache 和 mysql 的 XAMPP
已经安装了apache和mysql的情况下安装xampp有什么问题吗?
is there any problem to install xampp with apache and mysql already installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
应该没有什么问题。只需要知道,如果不将 Apache 服务器或 MySQL 服务器修改为使用非标准端口,您将无法同时启动它们。 (您可以轻松地将 XAMPP MySQL 服务器与现有 Apache 一起使用,或者将现有 MySQL 服务器与 XAMPP Apache 一起使用。)
如果您有其他 Apache,则在使用 XAMPP 控件将 XAMPP Apache 和 MySQL 注册为 Windows 服务时也可能会遇到一些问题和 MySQL 服务器配置为服务(我预计服务名称冲突)。
如果您的计算机上已经安装了 Apache 和 MySQL,我不知道为什么您还想安装 XAMPP。
There shouldn't be any problem. Just know that you won't be able to start both Apache servers or by MySQL servers at the same time without modifying them to use non-standard ports. (You could easily use the XAMPP MySQL server with your existing Apache or your existing MySQL server with the XAMPP Apache.)
You may also have some problems with registering the XAMPP Apache and MySQL as Windows services using the XAMPP controls if you have your other Apache and MySQL servers configured as services (I'm expecting service name conflicts).
If you already have Apache and MySQL installed on your machine, I'm not sure why you would want to also install XAMPP.
最好的方法是将预先存在的 MySQL 服务器的端口号从 3306 更改为 3307,这样您就可以同时使用两个 MySQL 实例(XAMPP MySQL 和预先存在的 MySQL)而不会发生冲突。
The best way is to change the port number from 3306 to 3307 for the pre-existing MySQL server so you can use both MySQL instances (XAMPP MySQL and pre-existing MySQL) simultaneously without conflict.
供个人使用?效果很好!只需使用正确的应用程序(xampp_start/xampp_stop)来运行 apache/mysql 服务器!
For personal use? Works fine! Just use the right applications (xampp_start/xampp_stop) to run apache/mysql server!
我认为您可能需要考虑删除 apache 和 mysql,然后安装 xampp。 Xampp 将添加两者,如果您安装 xampp 并且它们已经安装,它们可能会发生冲突。
你应该对你的 mysql 数据库进行备份,然后将它们放回去,你应该没问题。
I think you might want to consider removing apache and mysql and installing xampp after. Xampp will add both and they might collide if you install xampp and they are already installed.
You should do a backup on your mysql databases and put them back after and you should be fine.
您需要更改MySQL安装程序中的端口号,您将找到重新配置MySQL服务器的选项。
将其端口号更改为
3308
然后一切都会正常工作。You need to change the port number in MySQL installer, you will find an option to reconfigure MySQL server.
Change its port number to
3308
and everything will work fine then.应该没有问题,但是您需要决定使用哪个 MySQL 服务器,是随 XAMPP 安装的还是现有的 MySQL 服务器
There should be no problem, but you need to decide which MySQL server you will use, whether the installed one along XAMPP or the exist MySQL server
如果您已经安装了 Apache 和 MySQL,那么为什么还需要 XAMPP?您肯定已经拥有完整的 LAMP / WAMP 堆栈了吗?
只是添加一个注释。
我之前在本地计算机上安装了 MySQL 服务器,用于一些不需要 ..AMP 堆栈的开发项目。主要是 NodeJS、Angular 和 Java 应用程序。
我的大部分 Web 开发都是在运行 LAMP 堆栈的 ubuntu 服务器上完成的,因此我从来没有费心为 Web 开发设置本地开发环境。
在过去的几天里,我决定使用 XAMPP 在我的 Windows 10 计算机上设置一个开发环境(MySQL 服务器已经在运行)。以下是我的发现:
运行连接到本地 MySQL 服务器的项目不是问题,因为所有数据库连接都写入每个单独的项目中。所以实际上,使用 XAMPP 安装 MySQL 根本不是必需的。如果没有 XAMPP 安装的一部分,您绝对可以正常生活。
我真正想要的是用于管理现有 MySQL 服务器的 phpmyadmin 控制台。因此,我对 xampp 目录进行了一些挖掘。
您可以在此文件中添加本地MySQL数据库服务器的用户名和密码:
phpMyAdmin 现在可以通过 http://localhost/phpmyadmin 访问,并且将连接到现有的 MySQL 安装。
您还需要在本地 MySQL 服务器上创建一个 phpmyadmin 数据库来存储 phpmyadmin 设置,以及一个没有密码的“pma”@“localhost”帐户。登录 phpyadmin 会提示您创建数据库,只需按照提示操作,phpmyadmin 就会处理数据库创建。 pma (PhpMyAdmin) 用户必须手动创建,无需密码,且具有完全的管理员权限。现在你可以开始了...
我尽力将 MySQL 服务器链接到 XAMPP 管理控制台,但很难让 XAMPP 管理控制台识别出 MySQL 服务器已启用。我尝试编辑几个 XAMPP 文件中的 mysqld.exe 和 my-default.ini 文件的路径,但没有任何效果。我很想知道这是否可能。
我编辑的文件:
不幸的是,所有编辑都没有产生任何影响。然而,我仍然能够从 phpmyadmin 和 MySQL Workbench 管理 MySQL 服务器,所以真的没有损失。
希望对某人有帮助:)
If you have Apache and MySQL already installed then why do you need XAMPP? Surely you already have the full LAMP / WAMP stack already?
Just to add a note.
I had previously installed MySQL server on my local machine for some development projects that didn't require an ..AMP stack. Mainly NodeJS, Angular and Java applications.
Most of my web development was done on an ubuntu server running a LAMP stack, so I never bothered to set up a local development environment for web development.
In the last couple of days I decided to setup a development environment on my Windows 10 machine using XAMPP (with a MySQL server already running). Here is what I found:
Running projects that connect to the local MySQL server is not an issue since all the database connections are written in each individual project. So really, installing MySQL with XAMPP is not a requirement at all. You can definitely live without it being part of the XAMPP install.
What I did want was the phpmyadmin console for administering the existing MySQL server. So, I did some digging through the xampp directories.
You can add the username and password of the local MySQL database server in this file:
phpMyAdmin will now be accessible via http://localhost/phpmyadmin and will be connected to the existing MySQL installation.
You will also need to create a phpmyadmin database on the local MySQL server to store the phpmyadmin settings, plus a 'pma'@'localhost' account with no password. Logging into phpyadmin will prompt you for creating the database, just follow the prompts and phpmyadmin will handle the database creation. The pma (PhpMyAdmin) user will have to be created manually, no password, with full admin permissions. Now you are good to go...
I tried my best to link the MySQL server to the XAMPP admin console but struggled to get the XAMPP admin console to recognise that the MySQL server was enabled. I tried editing the path to the mysqld.exe and my-default.ini files in several of the XAMPP files but none made a difference. I would love to know if this is possible.
Files I edited:
Unfortunately none of the edits made a difference. However, I was still able to admin the MySQL server from phpmyadmin and MySQL Workbench so no loss really.
Hope that helps someone :)
这真的很容易...只需你必须手动停止 apache 和 mysql 服务..不需要修改任何端口号。
之后你就可以通过Xammp启动apache和mysql服务了:)
It really easy ...Just u have to stop apache and mysql services manually ..no need to modify any port no.
After that u can start the apache and mysql service through Xammp :)