mysql5.1 database upgrade

Need for work, this time upgrade the component mysql5.1 that comes with the software tool to mysql5.6.

According to the official website, the upgrade is divided into two steps. http: //dev.mysql. com / doc / refman / 5.1 / en / upgrading.html 

        1. Upgrade from mysql5.1 to mysql5.5
2. Upgrade from mysql5.5 to mysql5.6.
Because mysql is a component included in the tool, this time the method I chose is to directly cover the upgrade.
I downloaded two zip packages from mysql official website: http: //dev.mysql. com / downloads /  
They are mysql-5.5.37-winx64 and mysql-5.6.17-winx64 (windows64 bit)

. Enter the upgrade section:

        1. Shut down the service and backup.
        2. Unzip mysql-5.5.37-winx64, copy all the contents below mysql-5.5.37-winx64 / bin to the <my_install> \ 3rdparty \ bin directory, overwrite the original file
        3. Replace the mysql-5.5.37-winx64 \ share \ english \ errmsg.sys file with <my_install> \ 3rdparty \ share \ english \ errmsg.sys 
        4. Modify the <my_install> \ config \ my.ini file (this specific (What .ini file is specified by mysql)
        ① innodb_file_io_threads = 8 is changed to innodb_read_io_threads = 8
        ②default_table_type = MYISAM is changed to default-storage-engine = InnoDB
          ③ thread_cache = 8 is changed to thread_cache_size = 8 
5. Start the database mysql service. Start directly or be called to enable
6. Open a new terminal as an administrator (right-click and choose to run as administrator)
             cd to <my_install> \ 3rdparty \ bin directory
             Enter mysql_upgrade -u root (or the user name specified by the software) -p Enter
       Generally, press Enter without entering the password to update the database
7. Start the inspection service. At this point, the upgrade to mysql5.5 is complete. 


The steps to upgrade from 5.5 to 5.6 are similar, but the fourth step is to modify the <my_install> \ config \ my.ini file based on the third step
      ①Find innodb_file_per_table and change to innodb_file_per_table = 1
      ② Find table_cache = 300 and comment it # table_cache = 300 


Finally, the specific situation still needs to be resolved. At first, I had no clue at all, and later I found log files, searched Google, and checked the official website. Various methods were used. As long as you keep exploring, you can always solve the problem. mutual encouragement.
Published 30 original articles · Like 13 · Visits 100,000+

Guess you like

Origin blog.csdn.net/u013224189/article/details/24409719