MySQL 5 and MySQL 8.6 migration

Source: Internet
Author: User

I don't want to reinstall software such as MySQL5 and MyEclipse8.6, So I copied the installation directory directly to the new computer. In order to run it, I made the following operations. Environment: Win7 prerequisites: Java environment configuration I. MySQL5 www.2cto.com 1. Copy the entire MySQL directory (including data files, for example, if the directory is % MYSQL_PATH % 2, modify the MySQL configuration file to edit my. ini configuration file (% MYSQL_PATH % directory), modify the values of the following parameters accordingly. Basedir: MySQL installation directory, that is, % MYSQL_PATH % datadir: Database folder. Each database has a corresponding innodb_data_home_dir: data folder, which contains files such as ibdata1, stores all data.
2. Create a MySQL service. Double-click bin \ mysqld.exe to run mysql. However, to create a service, you can find two methods on the Internet: Method 1: as an administrator, enter the % MYSQL_PATH % \ bin directory through the command line, and run the following command mysqld -- install MySQL to write mysqld -- install MySQL -- defaults-file = "% MYSQL_PATH % \ my. ini "but I didn't create it successfully. method 2 can be used as the administrator, run the following command SC create MySQL binpath = "% MYSQL_PATH % \ bin \ mysqld.exe" type = share start = auto displayname = "MySQL" depend = TCPIP www.2cto.com II. MyEclipse8.61. copy the entire directory. 2. modify the configuration file. If the copied directory is different from the directory on the old computer, modify the configuration file, change the directory configuration in all the configuration files related to the folder path in the MyEclipse directory to the corresponding value. I need to change the following configuration files: myeclipse. iniconfiguration \ config. iniconfiguration \. settings \ org. eclipse. ui. ide. prefs (this changes the workspace directory) configuration \ org. eclipse. equinox. simpleconfigurator \ bundles. infoconfiguration \ org. eclipse. equinox. source \ source.info by Jiang kunpeng

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.