DOS go in MySQL Import database

Source: Internet
Author: User
Tags import database mysql import mysql import database

Example: MySQL installed under E:\Program files\xampp\mysql
1: Start ==> run ==>cmd
2:e://Enter E-drive
3:E:\>CD programe files//Enter the Programe files root directory
4:e:\programe FILES\CD XAMPP
5:e:\programe files\xampp\ CD MySQL
6:e:\programe Files\xampp\mysql\cd Bin
7:e:\programe files\xampp\mysql\bin\mysql-h Localhost-uroot-p

Import Database

  1. First Use command E:\xampp\mysql\bin>mysql-uroot-ppassword to enter the database
  2. Then switch the database to use the database (databases are the one you want to import);
  3. Copy the SQL file you want to import (here is In.sql) to the bin directory of MySQL
  4. Execute command source Bsm.sql;

DOS go in MySQL Import database

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.