当前位置:网站首页>Native MySQL
Native MySQL
2022-07-07 03:45:00 【Darin2017】
1、dos operation
cd Get into bin Under the table of contents ;
mysql -hlocalhost -uroot -p... Sign in
show databases Display database ;
use Library name ;show tables Show data sheet
2、
First enter the code show variables like 'local_infile'; Check whether local file import permission is enabled if Value by ON be , Local file import permission is enabled .
Otherwise enter the code set global local_infile = 1; Open permission . stay workbench database The connection setting interface under the menu ,advanced Window others Add the following generation in code OPT_LOCAL_INFILE=1
show variables like 'local_infile';
set global local_infile = 1;
stay workbench database The connection setting interface under the menu ,advanced Window others Add the following generation in code OPT_LOCAL_INFILE=1
Open it or not, then manage connections Add OPT_LOCAL_INFILE=1
3、
mysql Find the file in the installation directory my.ini Add configuration at the bottom :
[mysqld]
secure_file_priv=D:\\mysql_import
[mysqld]
local_infile=1
cmd Administrator access ,net stop mysql Close the service ,net start mysql Restart the service
adopt show variables like '%secure_file_priv%';
show variables like '%local%' Check to see if it has been updated ;
4、workbench Upload csv File too slow processing scheme :
cmd start-up mysql; truncate mysql.sdi_tb001 Clear the table , LOAD DATA INFILE 'D:\\mysql_import\\000.csv' INTO TABLE mysql.sdi_tb001 FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' IGNORE 1 LINES; Upload data ( Speed 10 second 100 Ten thousand probably )
5、cmd Import csv The date format of the file does not match
load data infile 'D:\\mysql_import\\sdi20220706.csv' into table sdi_tb fields terminated by ',' lines terminated by '\r\n' ignore 1 lines
(edition_name,course_name,dttype,@var1,shifen,gongying,xuqiu,sdi)
set riqi= STR_TO_DATE(@var1,'%d/%m/%Y') ;
边栏推荐
- VHDL implementation of arbitrary size matrix multiplication
- Enumeration general interface & enumeration usage specification
- VHDL implementation of arbitrary size matrix addition operation
- PIP download only, not install
- Flutter3.0, the applet is not only run across mobile applications
- Open3d mesh filtering
- R data analysis: how to predict Cox model and reproduce high score articles
- RestClould ETL 社区版六月精选问答
- 25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
- 什么是 BA ?BA怎么样?BA和BI是什么关系?
猜你喜欢
树莓派设置wifi自动连接
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
机器学习笔记 - 使用机器学习进行鸟类物种分类
Experience design details
【安全攻防】序列化與反序列,你了解多少?
Top 50 hit industry in the first half of 2022
22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)
ubuntu20安装redisjson记录
Hisilicon 3559 universal platform construction: RTSP real-time playback support
About Confidence Intervals
随机推荐
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
About Confidence Intervals
Que savez - vous de la sérialisation et de l'anti - séquence?
Experience design details
RestClould ETL 社区版六月精选问答
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
Code quality management
VHDL implementation of arbitrary size matrix multiplication
VHDL实现单周期CPU设计
密码学系列之:在线证书状态协议OCSP详解
Basic concepts of Huffman tree
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
19. (ArcGIS API for JS) ArcGIS API for JS line acquisition (sketchviewmodel)
Enumeration general interface & enumeration usage specification
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
Set WiFi automatic connection for raspberry pie
接口数据安全保证的10种方式
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)
R data analysis: how to predict Cox model and reproduce high score articles