简体   繁体   中英

XAMPP apache with stand alone MySQL

I installed XAMPP to run PHP from eclipse. I have a standalone MySQL server that I use it from another java program. I want the apache server inside XAMPP to use this standalone MySQL instead of the default one. How can i achieve this?

When you are in the Xampp-controlpanel you can select the tools to start. If you have installed a standalone mysql-server, it is usually registered as a server (xampp regognizes that!). In you PHP-Application you just have to connect to this server (Address: Localhost and the username/password from your server)

Just dont start the xampp-server, start your own one.

Just don't start XAMPP's MySQL Server. Apache or PHP does nothing else than connecting to localhost and MySQL's standard port.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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