当前位置:网站首页>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') ;
边栏推荐
猜你喜欢
如何自定义Latex停止运行的快捷键
机器学习笔记 - 使用机器学习进行鸟类物种分类
Graphical tools package yolov5 and generate executable files exe
Variables, process control and cursors (MySQL)
25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
R数据分析:cox模型如何做预测,高分文章复现
概率论公式
1200.Minimum Absolute Difference
ubuntu20安装redisjson记录
函数重入、函数重载、函数重写自己理解
随机推荐
About Tolerance Intervals
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
. Net interface can be implemented by default
Construction of Hisilicon universal platform: color space conversion YUV2RGB
[Dameng database] after backup and recovery, two SQL statements should be executed
[dream database] add the task of automatically collecting statistical information
SSL certificate deployment
Lab1 configuration script
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
Enumeration general interface & enumeration usage specification
A 股指数成分数据 API 数据接口
Delete data in SQL
QT opens a file and uses QFileDialog to obtain the file name, content, etc
Sub pixel corner detection opencv cornersubpix
[colmap] 3D reconstruction with known camera pose
本机mysql
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
装饰设计企业网站管理系统源码(含手机版源码)