Mysqldump Export/Import all databases

Source: Internet
Author: User

In the Windows environment

Add "System environment variables". My Computer > Properties > Advanced > environment variable, under the "System Variables" section, find the path double-click Edit. Add, (semicolon), and then add the path to the Bin folder (containing files such as Mysql.exe and Mysqldump.exe) in the MySQL installation directory, such as F:\wamp\bin\mysql\mysql5.0.45\bin.

After that, start > run, enter CMD to open the Command line window,

Be sure to note that this is not a MySQL command, so do not execute under MySQL.

Export all databases:

Mysqldump-uroot-p--all-databases > F:/sqlfile.sql

Import

command line into MySQL, be sure to enter MySQL, this is the MySQL command, and then enter

SOURCE F:/sqlfile.sql

Mysqldump can also back up a database on its own, without showing it.

Mysqldump Export/Import all databases

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.