当前位置:网站首页>MySQL导出sql脚本文件
MySQL导出sql脚本文件
2022-06-30 10:10:00 【如风暖阳】

️前言️
sql脚本文件在我们做项目时,特别是学习别人的开源项目时经常需要进行导入导出操作,才能在自己的系统上跑起来,这篇文章主要介绍如何导出sql脚本文件,具体操作如下,附带截图详解。
博客主页:【如风暖阳】
精品Java专栏【JavaSE】、【备战蓝桥】、【JavaEE初阶】、【MySQL】、【数据结构】
欢迎点赞收藏留言评论私信必回哟本文由 【如风暖阳】 原创,首发于 CSDN
博主将持续更新学习记录收获,友友们有任何问题可以在评论区留言
MySQL导出sql脚本文件
一.打开MySQL数据库安装目录下的bin文件夹
会有很多人找不到MySQL的bin目录,我们可以按照下边的操作来找到它的具体路径。
1.在电脑访问框搜索服务,打开服务应用。
2.在服务应用内找到MySQL并打开,2红框内的路径即为MySQL安装目录下bin文件夹所在位置
3.按照红框内的路径找到并打开文件夹
二.在文件夹内打开命令行
在路径框输入cmd命令敲下回车键

三.在命令框内输入指令导出sql脚本
1.输入导出代码
代码如下:
mysqldump -u root -p 数据库名 > 路径\xxx.sql
2.输入MySQL数据库密码
将1中代码命令输入以后敲下回车键,会让你输入mysql数据库的密码,输入密码后敲回车,完成导出
下图作为演示,导homework数据库到d盘
导出成功:
️最后的话️
总结不易,希望uu们不要吝啬你们的哟(^U^)ノ~YO!!如有问题,欢迎评论区批评指正

边栏推荐
- 19:00 p.m. tonight, knowledge empowerment phase 2 live broadcast - control panel interface design of openharmony smart home project
- Review of mathematical knowledge: curve integral of the second type
- CVPR 2022 | 清华&字节&京东提出BrT:用于视觉和点云3D目标检测的桥接Transformer
- 05_ Node JS file management module FS
- matplotlib 笔记: contourf & contour
- 历史上的今天:微软收购 PowerPoint 开发商;SGI 和 MIPS 合并
- TypeScript–es5中的类,继承,静态方法
- Retest the cloud native database performance: polardb is still the strongest, while tdsql-c and gaussdb have little change
- ArcGIS Pro scripting tool (6) -- repairing CAD layer data sources
- MySQL从入门到精通50讲(三十二)-ScyllaDB生产环境集群搭建
猜你喜欢

go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)

Q-Learning笔记

Dow Jones Industrial Average

I found a wave of "alchemy artifact" in the goose factory. The developer should pack it quickly

我在鹅厂淘到了一波“炼丹神器”,开发者快打包

Matplotlib notes: contour & Contour
[email protected] somatosensory manipulator"/>Skill combing [email protected] somatosensory manipulator

苹果高管公然“开怼”:三星抄袭 iPhone,只加了个大屏

小程序中读取腾讯文档的表格数据

Musk has more than 100 million twitter fans, but he has been lost online for a week
随机推荐
Go zero micro Service Practice Series (VIII. How to handle tens of thousands of order requests per second)
[rust daily] the first rust monthly magazine on January 22, 2021 invites everyone to participate
CSDN daily one practice 2021.11.06 question 1 (C language)
59 websites programmers need to know
Skill combing [email protected] somatosensory manipulator
同事的接口文档我每次看着就头大,毛病多多。。。
LVGL 8.2 Drop down in four directions
ArcGIS PRO + PS vectorized land use planning map
Mysql database foundation: constraint and identification columns
Android 开发面试真题进阶版(附答案解析)
安徽《合肥市装配式建筑施工图审查设计深度要求》印发;河北衡水市调整装配式建筑预售许可标准
pytorch 笔记 torch.nn.BatchNorm1d
Memory escape analysis
Skill combing [email protected] voice module +stm32+nfc
技能梳理[email protected]基于51系列单片机的智能仪器教具
Foresniffer tutorial: extracting data
ArcGIS Pro scripting tool (6) -- repairing CAD layer data sources
微信推出图片大爆炸功能;苹果自研 5G 芯片或已失败;微软解决导致 Edge 停止响应的 bug|极客头条...
内存逃逸分析
7 大轻量易用的工具,给开发者减压提效,助力企业敏捷上云 | Techo Day 精彩回顾...