I installed XAMPP with only Apache and PHP and now I realized I also need MySQL. I downloaded a XAMPP installer and ran it, but it won't install in C:\xampp
as it already exists.
How can I add MySQL to the existing Apache+PHP installation?
No, you don't have to do a separate installation, as mySQL is automatically installed as part of the XAMPP installation. MySQL comes bundled with XAMPP.
Create MySQL Database at the LocalhostOpen your browser and go to localhost/PHPMyAdmin or click “Admin” in XAMPP UI. Now click Edit privileges and go to Change Admin password, type your password there and save it. Remember this password as it will be used to connect to your Database.
As two different versions of XAMPP cannot run on the same port, we need to change to the port. Steps to change the port for the XAMPP1_8_2: Open the file HTTP CONF file > change the port from the 80 to 8080. After changing the port click on save and exit.
Here is how I did it:
c:\xampp2
)c:\xampp2\mysql
to c:\xampp\mysql
) You can then delete the second installation folder.c:\xampp\xampp-control.ini
, looking for the [EnableModules]
section. Set MySQL=1
.my.ini
file. Do a search and replace, changing all instances of xampp2
to xampp
.Now you can hit start, and MySQL should start up. Note these instructions assume c:\xampp is your desired install location, adjust accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With