Test Prerequisite Skills Series 1: Script data import via MySQL command

Source: Internet
Author: User

Lao Xu, share TestThe actual dry goods that can solve the problem in the project! Share today: How to pass MySQLcommand line, import MySQL script file data? ---solving practical problems: workProcess, often need to import MySQL script file Many students may say, directly through the MySQL client import, easy to fix; however, many servers, for security reasons, do not open third-party client login permissions (of course there are many other ways to deal with it today, not discussed); How do I import a script this time? ---Premise: You will already be operating MySQL know what MySQL is basic mysql command know what mysql-u root-p123456 mean----body start: The first step: Import the SQL script file into the current directory, Assume that the file is: Idomysqltest.sql Step two: Determine which to import to Database, assuming: Szmzcz step three: Start importing MySQL server input command: mysql–uroot–p123456-dszmzcz<idomysqltest.sql–Over , easy to handle! of course, there are other ways to import, interested in their own attempts, or Baidu search under;There are many ways to achieve any one thing;be good at thinking!   --Lao Xu Blog All articles , not labeled reproduced, are originalReprint Annotated Source http://www.51testing.com/?497177

Test Prerequisite Skills Series 1: Script data import via MySQL command

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.