当前位置:网站首页>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') ;
边栏推荐
- QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
- Index of MySQL
- 接口数据安全保证的10种方式
- 代码质量管理
- codeforces每日5题(均1700)-第七天
- About Estimation Statistics
- About Estimation Statistics
- Introduction to opensea platform developed by NFT trading platform (I)
- Huawei and Xiaomi "copy each other"
- Appx code signing Guide
猜你喜欢

Mathematical induction and recursion

Open3D 网格滤波

Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND

Experience design details

VHDL实现任意大小矩阵乘法运算

About Tolerance Intervals

My brave way to line -- elaborate on what happens when the browser enters the URL

Graphical tools package yolov5 and generate executable files exe

小程序能运行在自有App中,且实现直播和连麦?

VHDL实现任意大小矩阵加法运算
随机推荐
Depth analysis of compilation constants, classloader classes, and system class loaders
My brave way to line -- elaborate on what happens when the browser enters the URL
MySQL的索引
源代码保密的意义和措施
20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
Decoration design enterprise website management system source code (including mobile source code)
Set static IP for raspberry pie
VHDL implementation of arbitrary size matrix addition operation
[leetcode] 450 and 98 (deletion and verification of binary search tree)
Flink task exit process and failover mechanism
24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
[colmap] 3D reconstruction with known camera pose
2022.6.28
VHDL implementation of single cycle CPU design
VHDL implementation of arbitrary size matrix multiplication
About Confidence Intervals
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
QT thread and other 01 concepts
[dream database] add the task of automatically collecting statistical information