当前位置:网站首页>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') ;
边栏推荐
- 2022夏每日一题(一)
- 如何替换模型的骨干网络(backbone)
- 24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
- 代码质量管理
- [colmap] 3D reconstruction with known camera pose
- U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
- About Estimation Statistics
- Significance and measures of source code confidentiality
- 23. (ArcGIS API for JS) ArcGIS API for JS ellipse collection (sketchviewmodel)
- Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
猜你喜欢
24.(arcgis api for js篇)arcgis api for js点修改点编辑(SketchViewModel)
Restcloud ETL Community Edition June featured Q & A
qt-线程等01概念
codeforces每日5题(均1700)-第七天
VHDL implementation of arbitrary size matrix multiplication
Docker部署Mysql8的实现步骤
自适应非欧表征广告检索系统AMCAD
太方便了,钉钉上就可完成代码发布审批啦!
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
23. (ArcGIS API for JS) ArcGIS API for JS ellipse collection (sketchviewmodel)
随机推荐
链表面试常见题
如何替换模型的骨干网络(backbone)
What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
校招行测笔试-数量关系
Mathematical induction and recursion
Hisilicon 3559 universal platform construction: RTSP real-time playback support
It's too convenient. You can complete the code release and approval by nailing it!
Graphical tools package yolov5 and generate executable files exe
Flink task exit process and failover mechanism
Flutter3.0了,小程序不止于移动应用跨端运行
About Confidence Intervals
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
VHDL实现任意大小矩阵加法运算
About Estimation Statistics
Significance and measures of source code confidentiality
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
Install torch 0.4.1
自适应非欧表征广告检索系统AMCAD
什么是 BA ?BA怎么样?BA和BI是什么关系?