To beginners: How can I back up a database using commands in MySQL?

Source: Internet
Author: User
Tags mysql commands mysql command line

When I get used to the client, I have no idea about MySQL commands. Suddenly, SQL Yog cannot be used. How can we export data? I searched the internet, but there are a lot of answers, but they won't be used! . The backup command is mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL. Where should I write this command? I naturally think that in MySQL command line client, I believe some cainiao will think so, and the result always reports an error: OUTFILE disabled. No resistance. I posted a post on csdn for help. I learned that mysqldump is an operating system command and can be used directly in the operating system. Run the CMD command to enter the MySQL bin directory: D:/mysql6/bin>, and then press mysqldump-hlocalhost-uroot-p111111 database>
D:/database. SQL. That's all! Hope to help some people ......

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.