MYSQL common commands) _ MySQL

Source: Internet
Author: User
Tags import database
MYSQL common commands (to) bitsCN. com1. export the entire database mysqldump-u username-p -- default-character-set = latin1 database name> exported file name (the default database encoding is latin1) mysqldump-u wcnc-p smgp_rj_wcnc> wcnc. SQL 2. export a table mysqldump-u user name-p database name table name> exported file name mysqldump-u wcnc-p smgp_apps_wcnc users> wcnc_users. SQL 3. export A database structure mysqldump-u wcnc-p-d-add-drop-table smgp_1__wcnc> d: wcnc_db. SQL-d no data-add-drop-table add a drop table 4 before each create statement. import database A: Enter the mysql database console using the commonly used source command, such as mysql-u root-p mysql> use database and then use the source Command. the following parameter is the script file (as used here. SQL) mysql> source wcnc_db.sqlbitsCN.com

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.