Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,293 members, 7,807,990 topics. Date: Thursday, 25 April 2024 at 01:42 AM

How To Successfully Upgrade Mysql Of Wamp Server - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Successfully Upgrade Mysql Of Wamp Server (12118 Views)

Wamp Server Ebook Ft Install Wamp, Write Php / Mysql / Mysql Console / Wamp Installation Error. / Setting Up Wamp Server To Run On Local Area Network (2) (3) (4)

(1) (2) (Reply) (Go Down)

How To Successfully Upgrade Mysql Of Wamp Server by Nobody: 8:42am On Dec 22, 2013
HowTo: Install a new version of MySQL into wamp and migrate your data properly.


Please read the whole post before starting this process. Mistakes can cause untold hassle.

Also take a copy of your WHOLE C:\WAMP folder so you can replace it if necessary if something goes wrong.

A backup of your databases is also a good idea.


Assumption: That you are using the default wamp config where all your databses are stored in the mysql.x.y.x\data\ folder.
If thats the case no backup of your databases is necessary, but it would not hurt, just in case.
This should also work if you are using innodb databases, stored in the mysql.x.y.x\data\ folder.


This will take your complete MySQL environment, including users, passwords and privilages so they do not need to be re-created on the new release.


I have tried to keep it simple here using c:\wamp, but you may have wamp on another drive, just change c: to whatever you use.

Before you start read the upgrade notes on the mysql.com site for information on anything you may have to do to your existing data before you start the upgrade.
There should be a page devoted to major upgrades, you will have to read between the lines if you are doing a minor upgrade.

A glance at the changelog is also a good idea as it will give you a clue as to what has changed and how that may effect your SQL and or data.


So here is the process:

1. Download the ZIP version of the mysql you want to run ( not the msi installer, only because I dont know what it may do or assume when it installs )
Suggested source [www.mysql.com]

2. From wamp manager, Stop all services.

3. Go to c:\wamp\bin\mysql\ and create a new folder named appropriately i.e mysql5.5.28

4. Unzip the mysql and copy the contents of the MySQL folder into your newly created folder. Make sure the directory levels are the same as your existing MySQL folder.

5. Copy all the contents of your previous mysql\mysql5.5.10\data folder into the new data folder under your newly created version folder.
Thats EVERYTHING not just your databases, including the ibdata1, ib_logfile0, ib_logfile1 and all the mysql-bin.0000xx files.
We are going to use the recommended mysql-upgrade tool so this is ok to do.
This will also ensure that you keep all your Users and password and granted privilages intact when the upgrade is complete.

6. Copy c:\wamp\bin\mysql\mysql5.5.10\wampserver.conf to c:\wamp\bin\mysql\mysql5.5.28\wampserver.conf
All the folders in here are relative to where this file lives, so normally nothing need changing in here.

7. RIGHT CLICK wampmanager -> refresh
This will make wamp manager find your new version.
Check this by Left click wampmanager -> MySQL -> Versions Your new version should be available in the list.

8. From wamp manager -> MySQL -> Version click on your new version.
Normally you would have to uninstall the old wampmysql service and re-install the new wampmysql service, but wamp takes care of all that for you by just clicking the new version number.
This should also start the new mysql service, so now the new mysql is running.
BUT DONT DO ANYTHING YET!!!

9. Launch a command window ( using Run As Administrator ).
CD into c:\wamp\bin\mysql\mysql5.5.28\bin folder ( the new releases bin folder ).
And run
mysql_upgrade -u[your MySQL admin userid] -p > upgrade_results.txt

It will ask you for the password for the admin user you provided on the -u parameter.
enter the password.

Wait while it runs, If you have very large databases this may take some time but normally it will take anything from a few seconds to a minute or two.
This will look at your databases and do any upgrades that are required and also any upgrades/maintenace of the mysql database that MySQL uses internally.
Thats the tables that contain your userids and password and privilages and other things.

10. Check for errors in the upgrade_results.txt file, fix if there are any.
You can repeat this as often as you like, just refresh the data from the old versions data folder each time.

11. LEFT Click wamp manager -> MySQL -> Service -> Stop Service.
Then again and Start Service. This will load the changed mysql database with any new/changed config info.

12. At this point assuming you are staying on the newly installed version of MySQL its a good idea to run:
wampmanager -> MySQL -> MySQL Console
and run a
> reset master;

To reset the log files.
Source: http://forum.wampserver.com/read.php?2,111797,111797

1 Like

Re: How To Successfully Upgrade Mysql Of Wamp Server by Afam4eva(m): 9:54am On Dec 22, 2013
Nice Tutorial.
Re: How To Successfully Upgrade Mysql Of Wamp Server by lifestyle1(m): 4:49pm On Dec 24, 2013
Hmmmm
Re: How To Successfully Upgrade Mysql Of Wamp Server by Kingclickmedia: 4:49pm On Dec 24, 2013
must I comment? lol

happy christmass to u all
Re: How To Successfully Upgrade Mysql Of Wamp Server by AdekunleSegun(m): 4:58pm On Dec 24, 2013
hmmm.
Re: How To Successfully Upgrade Mysql Of Wamp Server by eyenCalabar(m): 4:59pm On Dec 24, 2013
@op Can u help install DHIS 2 server version?
Re: How To Successfully Upgrade Mysql Of Wamp Server by Nobody: 5:02pm On Dec 24, 2013
.
Re: How To Successfully Upgrade Mysql Of Wamp Server by coolakins(m): 5:02pm On Dec 24, 2013
@Op,
How do install wamp server or php, sql & apache web server on Windows 8.
I have tried several means but not working.
Any useful contributions will gtrstly appreciated.
Re: How To Successfully Upgrade Mysql Of Wamp Server by coolakins(m): 5:03pm On Dec 24, 2013
@Op,
How do install wamp server or php, sql & apache web server on Windows 8.
I have tried several means but not working.
Any useful contributions will greatly appreciated.
Re: How To Successfully Upgrade Mysql Of Wamp Server by GodpassU: 5:03pm On Dec 24, 2013
Make i just dey fp ma broda....which one be wamp.....na jombo
Re: How To Successfully Upgrade Mysql Of Wamp Server by 24in7: 5:04pm On Dec 24, 2013
just passin, lookin if my xcape xmas chicken is here grin
Re: How To Successfully Upgrade Mysql Of Wamp Server by rioemmanuel(m): 5:13pm On Dec 24, 2013
GodpassU: Make i just dey fp ma broda....which one be wamp.....na jombo
So u dont know wamp
Make i follow i stay for fp
Re: How To Successfully Upgrade Mysql Of Wamp Server by rioemmanuel(m): 5:13pm On Dec 24, 2013
GodpassU: Make i just dey fp ma broda....which one be wamp.....na jombo
So u dont know wamp
Make i follow u stay for fp
Re: How To Successfully Upgrade Mysql Of Wamp Server by adewasco2k(m): 5:19pm On Dec 24, 2013
Nice tuts
Re: How To Successfully Upgrade Mysql Of Wamp Server by Nobody: 5:25pm On Dec 24, 2013
The best way to upgrade wamp is to start using xamp. Period!

1 Like

Re: How To Successfully Upgrade Mysql Of Wamp Server by bory09(m): 5:29pm On Dec 24, 2013
do you mean swamp abi swam or maybe shawarma
Re: How To Successfully Upgrade Mysql Of Wamp Server by Lastdon02(m): 5:45pm On Dec 24, 2013
bory09: do you mean swamp abi swam or maybe shawarma
Wamp is a local host or server is fully mean "Window, Apach, Mysql, Php" (WAMP)
Re: How To Successfully Upgrade Mysql Of Wamp Server by Nobody: 5:50pm On Dec 24, 2013
Wamp or Xamp? Just asking, never heard of Wamp. Nice Article.
Re: How To Successfully Upgrade Mysql Of Wamp Server by Lastdon02(m): 5:54pm On Dec 24, 2013
maryjames9: Wamp or Xamp? Just asking, never heard of Wamp. Nice Article.
Both do dsame work broda its all Local server and both confilct wit prt80 eg if u av skype instal on ur pc u cnt install wamp or Xamp or any local server until u uninstall it
Re: How To Successfully Upgrade Mysql Of Wamp Server by chaloner(m): 5:58pm On Dec 24, 2013
Help! Help! ! Help !!!!!!!!
Help me NL dis Is my xmas chicken ............ Chaiiioiii I'm finished !!!!!!!! embarassed

3 Likes

Re: How To Successfully Upgrade Mysql Of Wamp Server by Nobody: 6:00pm On Dec 24, 2013
Lastdon02:
Both do dsame work broda its all Local server and both confilct wit prt80 eg if u av skype instal on ur pc u cnt install wamp or Xamp or any local server until u uninstall it
Please tell me more,i'm ready to learn.
Re: How To Successfully Upgrade Mysql Of Wamp Server by chaloner(m): 6:03pm On Dec 24, 2013
Lastdon02:
Both do dsame work broda its all Local server and both confilct wit prt80 eg if u av skype instal on ur pc u cnt install wamp or Xamp or any local server until u uninstall it
taaa dis one na lie , I'm using both skype and xamp on the same lapi.......pack wella

1 Like

Re: How To Successfully Upgrade Mysql Of Wamp Server by dorange(m): 6:23pm On Dec 24, 2013
cool_akins: @Op,
How do install wamp server or php, sql & apache web server on Windows 8.
I have tried several means but not working.
Any useful contributions will gtrstly appreciated.

av installed it on windows 7....i dnt think the method of installation on windows8 should differ.....wat version are u trying to install?....before u try install wamp server on ur system ensure u av Microsoft visual C++ 2010 runtime library installed on ur system or else wamp server won't work
Re: How To Successfully Upgrade Mysql Of Wamp Server by dorange(m): 6:35pm On Dec 24, 2013
Lastdon02:
Both do dsame work broda its all Local server and both confilct wit prt80 eg if u av skype instal on ur pc u cnt install wamp or Xamp or any local server until u uninstall it

no dats nt ryt...port conflicts do happen but can be corrected....skype or iis or Norton antivirus nd some oda programs will use port 80 as default port....so if u av skype or oda programs lyk dat u will av to change the port on which ur apache server will listen to....how to do dis: click on d wamp server icon go to apache under apache open the httpd.conf file nd search for listen:80 change it to listen:8080 or 5080...then save the file....note: to access ur site u will not type http://localhost....u will type http://localhost:8080....or 5080.....thank me later....whatsapp me @08185436877 for help......am willing to help any one out for free.

1 Like

Re: How To Successfully Upgrade Mysql Of Wamp Server by Ugokings4luv(m): 7:13pm On Dec 24, 2013
A
Re: How To Successfully Upgrade Mysql Of Wamp Server by Damey2011(m): 7:42pm On Dec 24, 2013
Abeg, help me post php code to link to mysql, err'code I've seen and tried do not seem to work for me
Re: How To Successfully Upgrade Mysql Of Wamp Server by Ameboperoo(m): 8:31pm On Dec 24, 2013
What are these pple saying?
Re: How To Successfully Upgrade Mysql Of Wamp Server by lincolnj88: 9:26pm On Dec 24, 2013
grin abeg make I find apc vs pdp thread....
Dem dem, agbameta please stop viewing this thread , its not made for us....... grin
Re: How To Successfully Upgrade Mysql Of Wamp Server by Greaaat: 11:53pm On Dec 24, 2013
Lost my sister this night a day to Xmas very sad please like to tell her R.I.P thank you
Re: How To Successfully Upgrade Mysql Of Wamp Server by instinctg(m): 12:27am On Dec 25, 2013
lincolnj88: grin abeg make I find apc vs pdp thread....
Dem dem, agbameta please stop viewing this thread , its not made for us....... grin

Gerout of here, na for geeks like us
Re: How To Successfully Upgrade Mysql Of Wamp Server by NobleG1(m): 2:50am On Dec 25, 2013
I've used XAMPP (former king of desktop server) for years until I tried Uniform Server. Since using Uniform Server, I got hooked. It is a powerful and lightweight server for Windows. Very simple to use and configure.

Check it out - Uniform Server

(1) (2) (Reply)

He Does Not Have Money For Hosting And Domain Name. What Should He Do? / Nairaland Trends On Twitter...check Out Comments / How Can You Prevent A Webpage From Being Saved?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 33
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.