Follow the steps below and your XAMPP will be updated in no time!
BACKUP OLD DATA!
Lets backup all the databases first
- Open XAMPP Control Panel as an Administrator
- Click on the Shell option
- run the following command
mysqldump -u root -p --all-databases > all-db-dump.sql - If you have different user for databases then change the value ‘
root’ with username. If you don’t have any password just press enter. Otherwise provide the password. - This will create a SQL file named “all-db-dump.sql” that contains all the databases in MySQL server. You will find this file in xampp folder.
- Now stop both Apachee and MySQL servers and quit the xampp control panel. Close the command prompt too.
- Now rename your ‘xampp’ folder to ‘xampp-old’. This way if anything goes wrong you will be able to get back to the old version very easily.
TIME TO INSTALL THE NEW ONE!
- Download the latest version of XAMPP.
- Install it in the same drive where your old Xampp originally was.
- Now go to xampp folder and run the xampp control panel as Administrator.
- Start both Apachee and MySQL server and check whether they are working properly or not, also check PhpMyAdmin page.
- Now Copy the htdocs folder from ‘xampp-old’ folder to ‘xampp’ folder.
- Go to
xampp\php\php.ini - You can use CLI for importing database. It helps especially with very big databases. If so you can jump to step 19. If not follow the remaining steps.
- Now configure the php.ini file and increase the value for the following options
upload_max_filesize,memory_limit,post_max_size. post_max_sizeandmemory_limitneed to be larger thanupload_max_filesize. Make them high enough so big files can work on the server.- Go to
‘xampp\phpMyAdmin\libraries\config.default.php’ - Look for
$cfg[‘ExecTimeLimit’] = 600; - Change the value 600 to a higher value may be 6000.
- Now restart both Apache and MySQL server.
- Now go to phpMyAdmin
- Go to Import tab
- Import ‘all-db-dump.sql’ file through the import option directly to server.
- Based on how many databases you have it will take some time.
- If you have followed all the steps correctly you will get a success message “ Import has been successfully finished”.
- After that run the following command
mysql_upgradein the Shell option. - Go ahead and check whether your site and databases are working properly or not.
- If everything is working fine than you can delete the xampp-old file.
If you have followed instructions then you should have a functioning XAMPP with no issues.

Leave a Reply