Dump data from MySQL to local

Source: Internet
Author: User
Tags mysql query mysql version

Method One: Use the mysqldump command, such as: Mysqldump-h10.90.6.237-uf_insplat2car_r-p3306-pxxxxxxxxx nbmp tb_tag_log--skip-lock-tables-- Set-charset--where= "Origin_chance_no like ' nbcar% '" > Dump.sql

Note that this method will lock the table by default during dump, and the lock table operation requires permission, if there is no lock table permission, you can add the "--skip-lock-tables" option declaration does not lock the table, but I did, still failed, prompt: couldn ' t execute ' SET OPTION sql_quote_show_create=1, discovered by Google, due to the low MySQL version of the client

Method Two: Use the MySQL query command to export the query results directly:

Mysql-h10.90.6.237-uf_insplat2car_r-p3306-pxxxxxx--default-character-set=utf8--skip-column-names-b-E "SELECT * fr Om nbmp.tb_tag_log where origin_chance_no like ' nbcar% ' "> Dump.txt

Dump data from MySQL to local

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.