当前位置:网站首页>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') ;
边栏推荐
猜你喜欢
19. (ArcGIS API for JS) ArcGIS API for JS line acquisition (sketchviewmodel)
R data analysis: how to predict Cox model and reproduce high score articles
Can the applet run in its own app and realize live broadcast and connection?
RestClould ETL 社区版六月精选问答
QT thread and other 01 concepts
QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
[safe office and productivity application] Shanghai daoning provides you with onlyoffice download, trial and tutorial
Experience design details
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
Set WiFi automatic connection for raspberry pie
随机推荐
Sorting operation partition, argpartition, sort, argsort in numpy
【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
Code quality management
Restcloud ETL Community Edition June featured Q & A
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
C# Task拓展方法
Under the tide of "going from virtual to real", Baidu AI Cloud is born from real
Create applet from 0
接口数据安全保证的10种方式
24.(arcgis api for js篇)arcgis api for js点修改点编辑(SketchViewModel)
A 股指数成分数据 API 数据接口
概率论公式
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
pip只下载不安装
Flutter3.0, the applet is not only run across mobile applications
23. (ArcGIS API for JS) ArcGIS API for JS ellipse collection (sketchviewmodel)
Appx code signing Guide
Kalman filter-1
SSL证书部署
VHDL实现单周期CPU设计