is there any problem to install xampp with apache and mysql already installed?
8 Answers
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.
Comments
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:
/xampp/phpMyAdmin/config.inc.php
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:
- uMain.pas
- xampp_shell.bat
- MySQL_start.bat
- xampp_start.c
- ctl.bat
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 :)