简体   繁体   English

XAMPP apache独立MySQL

[英]XAMPP apache with stand alone MySQL

I installed XAMPP to run PHP from eclipse. 我安装了XAMPP来从eclipse运行PHP。 I have a standalone MySQL server that I use it from another java program. 我有一个独立的MySQL服务器,我从另一个java程序使用它。 I want the apache server inside XAMPP to use this standalone MySQL instead of the default one. 我希望XAMPP中的apache服务器使用这个独立的MySQL而不是默认的MySQL。 How can i achieve this? 我怎样才能实现这一目标?

When you are in the Xampp-controlpanel you can select the tools to start. 当您在Xampp-controlpanel中时,您可以选择要启动的工具。 If you have installed a standalone mysql-server, it is usually registered as a server (xampp regognizes that!). 如果你已经安装了一个独立的mysql-server,它通常被注册为服务器(xampp会识别它!)。 In you PHP-Application you just have to connect to this server (Address: Localhost and the username/password from your server) 在您的PHP-Application中,您只需连接到此服务器(地址:Localhost和服务器的用户名/密码)

Just dont start the xampp-server, start your own one. 只是不要启动xampp-server,启动你自己的服务器。

Just don't start XAMPP's MySQL Server. 只是不要启动XAMPP的MySQL服务器。 Apache or PHP does nothing else than connecting to localhost and MySQL's standard port. Apache或PHP除了连接到localhost和MySQL的标准端口之外别无其他。

If you have a conflict, when you try to use one or another MySQL Server, it is a big "chance" to have them both opened. 如果您有冲突,当您尝试使用一个或另一个MySQL服务器时,将它们都打开是一个很大的“机会”。

You can check this by "right-click" on My Computer, and select "Manage". 您可以通过“我的电脑”上的“右键单击”进行检查,然后选择“管理”。 There go to "Services and applications" and you can see which one is running. 转到“服务和应用程序”,您可以看到哪个正在运行。

If both are running you can stop the one you don't wanna use. 如果两者都在运行,你可以阻止你不想使用的那个。

Hope this help. 希望这有帮助。

PS You may wanna use WAMPP, because it has a better graphical interface, and much more usefully shortcuts. PS您可能想使用WAMPP,因为它具有更好的图形界面,以及更有用的快捷方式。

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

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