Upgrading MySQL

Updating Existing Package

  • Stop the currently running MySQL server daemon

     bin/mysqladmin -u root shutdown


     or


     bin/mysqladmin -u root -p shutdown


  • backup the existing MySQL data

You must check issues regarding MySQL Administration for utilities for Backup and Restore of your data, the example below show's or will give you an idea how to do this;

     ex.: 

        tar -cvf /tmp/mysql-data.tar data


  • install the new version of MySQL * follow the procedure that comes with so or related issues
  • Replace the new data directory with the files you backup

     ex.: 

         tar -xf /tmp/mysql-data.tar


  • Restart the server, per the instructions in Running MySQL
Patching MySQL