Export MySQL file under Linux system

Source: Internet
Author: User

1, configuration: From centOS6.5 system, MySQL database

2. Commands for exporting. sql files:

Mysqldump-uroot-h116.228.90.147-p18006-p Aimo >/home/aimo.sql

3. Explanation:

I, Mysqldump is the utility that MySQL uses to go to the storage database. It primarily produces a SQL script that contains the commands necessary to recreate the database from scratch, create TABLE insert, and so on.

II,-uroot-u followed by user name

III,-h116.228.90.147-h followed by IP address, if it is local do not need to write this

IV,-p18006-p followed by port number

V,-p represents the database password, can be filled. If you don't fill in, you'll be filled in after you press ENTER.

VI, Aimo the name of the database to be exported

VII,/home/aimo.sql the address of the file you want to export and the filename

4, note: This line command to fill in the IP and port numbers and other parameters can be exported after any address of the MySQL database.

Export MySQL file under Linux system

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.