I'm struggling with understanding the proper steps to upgrade MySQL 5.1.41 to the latest MySQL version, which is 5.5.16. This is on a server that is running Windows Server 2003. I have made two attempts so far, but am not successful yet.
I have been following what is shown in the MySQL documentation at these links:
The biggest issue for me, is that this is on a production server (there is no dev server to try this on first), so I need to keep the current MySQL intact in case this fails again. I must be able to go back to the 5.1 MySQL, if needed.
The closest I've come, is as follows:
I ran a complete dump of the current MySQL database by using this command (not even sure if this is the proper command):
mysqldump --user=root --password --single-transaction --flush-logs --all-databases > file.sql
I downloaded the zip version (win32) of MySQL 5.5.16 and extracted it. I stopped & disabled the service for the current MySQL. I created a new servive (with a different service name than the original, though I did not delete the original service) using the instructions in one of the links above. I was able to start the service, and connect to it on localhost via mysql workbench. This all seemed to work. I had a practically empty server at this point, of course, as my data was not there yet. I'm not really clear on the proper way to move (or re-point) to my existing databases. I tried using workbench to restore the sql dump I'd done earlier. It ran for awhile, but then errored with "MySQL has stopped working". Sure enough, it was no longer running for some reason. I manually tried to restart the service, but it would not start. I assume that my import of the dump alter the data in the system tables, which caused this issue, but I'm only guessing.
If anyone has been through this process before, if you could offer me very clear step-by-step instructions on how to do this upgrade, I would be immensely grateful. Especially clearly explaining how I need to get the new version to see my existing databases. I have a mixture of InnoDB and MyISAM, plus memory (system stuff), so all types of formats need to be working.
Thanks so much.