Windows MySQL command line import. SQL File

Source: Internet
Author: User
Tags mysql command line

From http://bbs.taohost.net/thread-595-1-1.html

 

Mysql-uusername-pyourpassword yourdatabasename <c: \ sqlfile. SQL

Here, username is the MySQL user name, generally root;
Databasename indicates the name of the target database for which you want to import data;
Xxx. SQL is the directory where your current SQL file is stored; for example, C:/AAA/TTT. SQL

If it is greater than the number, it is exported. There should have been two Commands: mysqldump export and mysqlimport. However, if you use the MySQL command, it will identify it by itself.

The advantage is that the compatibility is good in general. Compared with phpMyAdmin.
Another method is to directly log on to the server and copy the MySQL directory. However, I don't know if there will be compatibility issues.

When phpMyAdmin imports a large SQL file, the browser may stop responding. Therefore, this method should be used when importing a large SQL file.

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.