[Windows Server 2008] MySQL Single Database Migration method

Source: Internet
Author: User

★ Welcome to The Guardian God · V Classroom, website address: http://v.huweishen.com
★ Guardian God · V Classroom is a Web site dedicated to providing server instructional video for the Guardian God, updated weekly video.
★ This section we will lead you: MySQL Database migration method
Note: This method is only available for MyISAM mode databases (such as the Guardian God · PHP suite); InnoDB is not suitable for this method.
This section focuses on a single database migration, and if it's a MySQL overall migration, check out my other videos.
Operation Flow: Back up the database on the old server, then create the database on the new server, and then restore the data.

1. Find the database path
Open the Services panel, locate the MySQL service, and view the properties.
In My.ini to find the "DataDir" parameter, the following path is the database storage directory.

2. Backing Up the database
Stop the MySQL database service and back up the database that needs to be transferred.


3. Create a new database
The new server is already installed with the new MySQL;
Go to "Guardian God Host management system" backstage, point to the left of "MySQL management", create a new database.

4. Restore Database backup
Follow the 1th step method to find the database path;
Copy the backup file on the old server, overwriting the recovery to the corresponding database.

5. Test Connection
Open "PHPMYADMIN" and log in using the account and password we set when we opened the database.

Now that this section is over, please visit the Guardian God website (www.huweishen.com) for more instructional videos.

Reprint please indicate the source (http://v.huweishen.com/video/60.html) Thank you!

[Windows Server 2008] MySQL Single Database Migration method

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.