Upgrade MySQL v. 5.5.54 to v.5.7.17

Ref: http://askubuntu.com/questions/750498/mysql-5-5-update-to-mysql-5-7

Here is what I’ve done:
DON’T FORGET TO BACKUP YOUR DATABASE FIRST! Pls read : http://myprojects.advchaweb.com/index.php/2017/03/18/script-to-backup-each-mysql-database-in-separate-files/

  1. Download MySQL Apt Repository from https://dev.mysql.com/downloads/repo/apt/. Currently the file name is ‘mysql-apt-config_0.8.3-1_all.deb’.
    SORRY, ONLY ADMIN CAN SHOW THIS!
  2. Install it:
  3. Then I’d got this screenSelect ‘MySQL Server (Currently selected: mysql-5.7)’ then ‘ok’.
    Then I’d got the second screen.Select ‘mysql-5.7’ then ‘ok’. Then if you get to the first screen again, just select ‘Ok’ and ‘ok’. The screen would be closed.
  4. Update my ubuntu system
  5. install the MySQL-server package, which now contains MySQL 5.7

     
  6. Now upgrade all mysql databases

     
  7. Now restart mysql server

     
  8. Check mysql server version

     
  9. Everything run well. At the phpmyadmin, I found the max upload size is 2M. I can modify this value in php.ini file (‘upload_max_filesize’).
    To find out where is the configuration file location for mysql, pls do like this:

    It’d show pretty long output, but I can found the line like this:

    SORRY, ONLY ADMIN CAN SHOW THIS!

Leave a Reply

Your email address will not be published. Required fields are marked *