当前位置:网站首页>Three methods of importing sql files in MySQL
Three methods of importing sql files in MySQL
2022-08-02 06:10:00 【web15286201346】
文章目录
一、使用工具Navicat for MySQL导入
- A specific tool to download and use method recommended an article in the blog park:
https://www.cnblogs.com/chyf1990/p/12987101.html
1.打开localhost_3306,选中右击“新建数据库”

2.Specify the database name and character set(可根据sqlFile type of character set to choose)

3.Operation under the selected database tableSQL文件

4.Select the path to import

二、使用官方工具MySQL Workbench导入
1、第一种方法
①.新建一个数据库demo(名字任取),Click on the indicator icon(或者FileThe inside of the barOpen SQL Script…)


②.Select the path to importSQL文件
③.Add specify the library name command ,并点击运行

注意:大概在15、16行的位置,如果不添加,Import is invalid
PS:Don't have to save,After import directly×掉即可,Save changessql文件本身;
④.刷新查看结果

2、第二种方法
①.点击导入(或者Server栏里Data Import)
②.Choose the path of the import file
③.Start Import
④.刷新查看结果

三、使用命令行导入
1.点击开始菜单输入cmd回车,打开dos界面;

2.cd进入到MySQL安装目录的bin文件下;

3.输入“mysql -u root -p”,再输入数据库密码;

4.create database Demo新建一个库;
5.选中数据库use Demo;选中导入路径source D:Demo.sql;

6.查看表show tables;

总结
- Three ways are used,Recommended the first two efficient.
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在.深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小.自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前.因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担.添加下方名片,即可获取全套学习资料哦
边栏推荐
- MySQL安装教程
- matlab simulink 飞机飞行状态控制
- 本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
- 【HCIE】NO.30 OSPFv3的基本配置
- Go语言中定时任务库Cron使用详解
- ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
- 合作的小伙伴,缺乏主人翁(owner)意识,好苦恼
- 【QT】Qt Creator生成动态库(DLL)并调用
- MYSQL unique constraint
- Detailed explanation of AMQP protocol
猜你喜欢

18年程序员生涯,读了200多本编程书,挑出一些精华分享给大家

ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法

Go语学习笔记 - 处理超时问题 - Context使用 从零开始Go语言

Android studio connects to MySQL and completes simple login and registration functions

MySQL 8.0.28 version installation and configuration method graphic tutorial
[email protected](使用passwordYES)"/>Navicat报错:1045 -拒绝访问用户[email protected](使用passwordYES)

C language: Check for omissions and fill in vacancies (3)

Detailed explanation of AMQP protocol

Matlab paper illustration drawing template No. 41 - bubble chart (bubblechart)

Navicat cannot connect to mysql super detailed processing method
随机推荐
Grid布局介绍
Go language study notes - grpc serverclient protobuf Go language from scratch
Navicat new database
MySQL大批量造数据
迅为RK3568开发板编译Buildroot-全自动编译
编译失败:HBuilderX 安装目录不能包括 ( 等特殊字符 (HBuilderX,uni-app报错)
Mysql子查询关键字的使用(exists)
golang's time package: methods for time interval formatting and output of timestamp formats such as seconds, milliseconds, and nanoseconds
简道云-灵活易用的应用搭建平台
软件测试常见的问题
【热题】LeetCode 热题 HOT 100分类+题解
Go语学习笔记 - 处理超时问题 - Context使用 从零开始Go语言
ES6——class类实现继承
一线大厂软件测试流程(思维导图)详解
ERROR 1045 (28000) Access denied for user 'root'@'localhost'Solution
MySQL 8.0.28 version installation and configuration method graphic tutorial
MySQL 用户授权
golang泛型
MySQL 5.7详细下载安装配置教程
apisix-入门使用篇