How to update packages correctly

From MoWeS Wiki

Jump to: navigation, search

Please read this article carefully since otherwise you could lose your data or crash your MoWeS installation!

MoWeS can not really update packages at the moment. This comes from the fact that MoWeS can not know which files it would need to update as if you were doing a manually update.

So MoWeS will completly delete the existing package and install the new package

This is perfectly fine if you update apache or php since in this directories are no user created files. It becomes problematic if you'd like to update MySQL or any application software like TYPO3, Wordpress or similar since these directories contain user created files!

For the application software is normally no clear way to describe how to update best. I'd recommend that you use a new MoWeS package and copy the files and SQL data from the old package to the new.

[edit] How to update MySQL correctly

Make absolutly sure that you follow these steps because otherwise you could lose all your databases and data!

  1. Stop MoWeS!
  2. Create a backup of the whole MoWeS system using the "Backup" function or just make copy of the MoWeS folder
  3. Open the folder "mysql" in your MoWeS directory in the windows explorer
  4. Copy the "data" folder to a safe place!
  5. Get the new MySQL package and copy it to the MoWeS folder where the mowes.exe resides
  6. Exit MoWeS and start MoWeS again
  7. MoWeS will install the new package now. Click OK on the warning that the package already exists and all data will be lost!
  8. After the package is installed and MoWeS fully started make sure that the server is stopped
  9. Go the the "mysql" folder in your MoWeS directory again
  10. Delete the "data" folder
  11. Put your old "data" folder we made a backup of some steps earlier back
  12. Done.

This only works if you stay in the same MySQL version! It will not work if you upgrade from MySQL 4 to MySQL 5! If you are not sure about this you could use phpMyAdmin or the mysqldump tool to dump all the data and import it later on again!

Personal tools