当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担.添加下方名片,即可获取全套学习资料哦
边栏推荐
- Navicat cannot connect to mysql super detailed processing method
- SQL数据表增加列
- Does Conway's Law Matter for System Architecture?
- mysql练习题
- 认识CAN光纤转换器的光纤接口和配套光纤线缆
- MySql copies data from one table to another table
- How much does a test environment cost? Start with cost and efficiency
- MySQL 游标
- MySQL 8.0.29 设置和修改默认密码
- Go语言中定时任务库Cron使用详解
猜你喜欢
Matlab论文插图绘制模板第41期—气泡图(bubblechart)
mysql 存储过程详解
2022年100道最新软件测试面试题,常见面试题及答案汇总
navicat连接MySQL报错:1045 - Access denied for user ‘root‘@‘localhost‘ (using password YES)
navicat connects to MySQL and reports an error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
Does Conway's Law Matter for System Architecture?
mysql实现按照自定义(指定顺序)排序
Jmeter使用多线程测试web接口
选择黑盒测试用例设计方法的综合策略方案总结
swinIR论文阅读笔记
随机推荐
interrupt()、interrupted()和isInterrupted()你真的懂了吗
利用浏览器本地存储 实现记住用户名的功能
Navicat如何连接MySQL
一线大厂软件测试流程(思维导图)详解
ES6——class类实现继承
apifox介绍及使用(1)。
11种你需要了解的物联网(IoT)协议
【语义分割】FCN
golang的time包:时间间隔格式化和秒、毫秒、纳秒等时间戳格式输出的方法
12个MySQL慢查询的原因分析
数学建模学习笔记:层次分析法(AHP)
合作的小伙伴,缺乏主人翁(owner)意识,好苦恼
Detailed explanation of AMQP protocol
MySQL 8.0.29 set and modify the default password
2022河南萌新联赛第(四)场:郑州轻工业大学 A - ZZULI
el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
力扣 2127. 参加会议的最多员工数 拓扑剪枝与2360补充
MySQL 8.0.29 设置和修改默认密码
Mysql常用命令大全
Does Conway's Law Matter for System Architecture?