当前位置:网站首页>Import and export database related tables from the win command line
Import and export database related tables from the win command line
2022-06-27 07:43:00 【Clear tears】
The command line exports the database related tables as sql file
grammar :mysqldump -h[ Where is the host computer IP] -u[ user name ] -p[ password ] [ Database to export ]>[ Export path / file name .sql]
Tips : No need to enter the database
No password for the first line of code ( Second line input )
Example :mysqldump -hlocalhost -uroot -p spring>d:/qqq.sql

If there is no error message, it means success 
Command line import SQL File to MySQL in
1、 Sign in mysql
grammar :mysql -u[ user name ] -p[ password ];
Example :mysql -uroot -proot

2、 Access to database ( If not, you need to create )
Create database Syntax :create database [ Database name ] charset='utf8'
Example :use spring;

3、 Import data table
grammar :source [ Path / file name .sql]
Example :source d:/qqq.sql;

Possible errors
ERROR 1046 (3D000): No database selected
reason : No database selected (use [ Database name ])
ERROR 1231 (42000): Variable 'foreign_key_checks' can't be set to the value of 'NULL'
reason : Memory limit ( modify my.ini file max_allowed_packet=1024M)
边栏推荐
- 磁选机是什么?
- 语音信号处理-概念(四):傅里叶变换、短时傅里叶变换、小波变换
- Guava tutorial collect some cases and write Google tool classes slowly
- (已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘
- MySQL about auto increment sum cannot be empty
- 闭包问题
- Window right click management
- JDBC参数化查询示例
- js用switch语句根据1-7输出对应英文星期几
- Goodbye, agile Scrum
猜你喜欢

Speech signal feature extraction process: input speech signal - framing, pre emphasis, windowing, fft- > STFT spectrum (including amplitude and phase) - square the complex number - > amplitude spectru

MSSQL how to export and delete multi table data using statements

JS, and output from small to large

Common operation and Principle Exploration of stream

cookie加密7 fidder分析阶段

Online text digit recognition list summation tool

File and multipartfile overview

c#的初步认识

js例题打印1-100之间所有7的倍数的个数及总和
![log4j:WARN No such property [zipPermission] in org. apache. log4j. RollingFileAppender.](/img/2c/425993cef31dd4c786f9cc5ff081ef.png)
log4j:WARN No such property [zipPermission] in org. apache. log4j. RollingFileAppender.
随机推荐
Sword finger offer 07 Rebuild binary tree
js输出形状
jupyter notebook文件目录
【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法
Jupiter notebook file directory
R language analyzing wine data
JDBC reads MySQL data list
R 语言 基于关联规则与聚类分析的消费行为统计
通过uview让tabbar根据权限显示相应数量的tabbar
js打印99乘法表
What is a magnetic separator?
c#的初步认识
语音合成:Tacotron详解【端到端语音合成模型】【与传统语音合成相比,它没有复杂的语音学和声学特征模块,而是仅用<文本序列,语音声谱>配对数据集对神经网络进行训练,因此简化了很多流程】
Basic knowledge | JS Foundation
磁选机是什么?
How to add data to the back-end database in the form of Excel file on the web page
MySQL about auto increment sum cannot be empty
期货反向跟单靠谱吗?
(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘
攻防演习防御体系构建之第一篇之介绍和防守的四个阶段