thephpcode is where your PHP resources flow and you can find tips and tricks of PHP coding. Code snippets and examples are also provided. Best of PHP are included in thephpcode. Remember, if you have questions, do post a comment on the relevant post.

Wednesday, June 4, 2008

We have noted that the internet requires an article on how to upgrade your MySQL server with xampp installed first. MySQL server on your computer are be shared among many HTTP servers - Apache or IIS - on the same operating system. Thus, there are possibilities you might want to upgrade or downgrade your MySQL server.

xampp by Apache Friends is a package that includes the Apache server, PHP and MySQL together with many other wonderful functions for local web development(localhost). However, the MySQL server included is never up to date. So below is how you upgrade your MySQL server.

1) Download MySQL server from http://dev.mysql.com/downloads/2) When you set up MySQL server, one of the steps of the installer should show an "Advanced" button, click on it.3) Following you should see where the server is about to install to. Change it to %your_xampp_installation_path%\mysql\ (e.g. C:\xampp\mysql\)4) After installation, your MySQL is upgraded.

Note that if you do not change the installation directory of MySQL server, the server will not be upgraded as the default server is still in your xampp folder. After upgrading, you can use MySQL Administrator (GUI Tools) or MyPHPAdmin to check the server version.

Note that you are advised to back up your database information before performing such upgrade or maintenance work. I will not be held responsible for any problems caused directly or indirectly by my articles or whatsoever.

I have found the perfect way of doing it without any side affects and also works perfectly with xampp control panel...

before you begin, make sure you backup your databases to files and also export all users to a filebe sure to stop mysql there is no need to uninstall the service

Step 1: Download the new version on MySQL install version or zip.(install version prefered since it is considerably smaller)

Step 2: Install MySQL to C:\TEMP. Install only the MySQL server

Step 3:Do not run advance options. do not let it install service. no configuration is required.

Step 4: Go to C:\TEMP, look for installation and copy the following folders "bin, include, lib, share, support-files". be absolutely certain not to copy dataOnce copied, go to your xampp folder, rename mysql folder to mysql_old. create new mysql folder then paste the contents that were copied

Step 5: Go to mysql_old and copy the data folder and paste it into your new mysql folder as well

Step 6: go to the bin folder within mysql that is located within xampp and create a blank my.ini file.If you are upgrading to version 5.6.11 which is what I did, then all you have to do is write a few commands which I have at the bottom of this instruction

step 7: click start next to MySQL on the xampp control panel and it should start normally assuming to you followed to instructions properly.Once done, you can uninstall the mysql package that you had installed to C:\TEMPAny questions or problems, message me or post back!

Start Overflowing

Buy author coffee!

Write In/Requests

hello all! thank you for visiting thephpcode - where php codes are shared and explained. I really hope you like the every little tips and tricks i write in just for you.

In order to keep this going, I'd really love to hear from you. If you have any compliments or feedback write them to hellclanner at gmail dot com. OR if you have any requests for tutorials or walkthroughs for PHP codes, HTML, CSS, Javascript - do write them in.

Sponsored

thephpcode choice php help and guide website/blog that allows php developers to rapidly develop their applications with the use of guides from thephpcode. choice functions and hot news about php are all here. we also have code examples shown to help you understand php better. also we include portions of mysql, apache and other technologies that you might need on your php journey. cool huh?