Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add MySQL to existing XAMPP installation

Tags:

xampp

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?

like image 301
f.ardelian Avatar asked Sep 21 '14 18:09

f.ardelian


People also ask

Do I need to install MySQL After installing XAMPP?

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.

How connect MySQL to 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.

Can I install 2 XAMPP versions?

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.


1 Answers

Here is how I did it:

  1. Re-run the installer and install with MySQL into a different folder. (These instructions assume c:\xampp2)
  2. After the installation finishes, move the mysql directory from the new install into the old install. (I moved c:\xampp2\mysql to c:\xampp\mysql) You can then delete the second installation folder.
  3. Be sure xampp is not running and edit c:\xampp\xampp-control.ini, looking for the [EnableModules] section. Set MySQL=1.
  4. Restart xampp. The MySQL buttons should be enabled. Click the Config button next to MySQL and edit the 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.

like image 131
Mike S. Avatar answered Oct 12 '22 13:10

Mike S.