MySQL: Execute load DATA LOCAL error.I use Navicat for MySQL to connect the MySQL server to perform local execution properly.Show VARIABLES like '%local%infile% 'The results are as follows:+---------------+-------+| variable_name | Value |+----------
You can use load data infile to import a *. csv file to mysql,
Summary:
Load data [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.csv'
[REPLACE | IGNORE]
Into table tbl_name
[FIELDS
[Terminated by 'string']
[[OPTIONALLY] enclosed by 'Char
Securing _ & _ hardening_linux_v1.0L.a. m.p environment configuration document updateInstallation, optimization, and security settings of Apache 2.x in centosAfter completing the configuration, start to enter the subjectApache:1. Modify
You can use load data infile to import a *. csv file to mysql,
Summary:
Load data in file
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Load data [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE
Mysql batch imports formatted text dataSyntax:
LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name' [REPLACE | IGNORE] INTO TABLE tbl_name [CHARACTER SET charset_name] [FIELDS [TERMINATED BY 'string']
Some enterprises use the default option when installing MySQL, which leads to data insecurity, and the server also faces the risk of intrusion, and may suffer performance problems in a short time. This article provides the best way to ensure MySQL
This article mainly introduces the MySQLload statement in detail. This article describes the basic syntax of load, file path, configuration options, STARTINGLINES options, TERMINATEDLINES options, and so on. For more information, see
Load
Basic Syntax:
Load data [low_priority] [local] infile 'file _ name txt '[replace | ignore]Into table tbl_name[Fields[Terminated by 'T'][OPTIONALLY] enclosed by ''][Escaped by ''][Lines terminated by 'n'][Ignore number lines][(Col_name,)] The load
This article mainly introduces a simple tutorial on data import and recovery in MySQL, mainly using the LOADDATA statement, for more information about how to load MySQL data to files backed up from the MySQL database, see the following two simple
The error "ERROR1148" is returned when MySQLload reads data from a file.
When MySQL load reads data from a file, ERROR 1148 is displayed.
Create a data table in MySQL
Create table weblogs (Md5 varchar (32 ),Url varchar (64 ),Request_date
Connection: mysql-h host address-u user name-p user password (note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (press enter)Create authorization: grant select on database. * to username @ login host
MySQL database has always been known for its high performance, high availability and ease of use, and it has become the most popular open source database in the world. A large number of individuals, web developers, large companies and so on their
LOAD Data Syntax Description:
LOAD DATA infile Syntax
LOAD DATA [low_priority] [local] INFILE ' file_name.txt ' [REPLACE | IGNORE]Into TABLE tbl_name[FIELDS[Terminated by ' t '][Optionally] Enclosed by '][escaped by ']][LINES terminated by ' n
The syntax of load
Copy Code code as follows:
LOAD DATA [Low_priority | CONCURRENT] [local] INFILE ' File_name.txt '
[REPLACE | IGNORE]
Into TABLE tbl_name
[FIELDS
[Terminated by ' string ']
[[optionally] enclosed by '
There are two simple methods in MySQL to load data into a MySQL database from a previously backed up file.LOAD Data import:
MySQL provides the load data statement as a bulk load. The following is an example declaration that reads a file dump.txt,
The load data command is a self-contained data import and export command in mysql. It can quickly import tens of millions of data records without getting stuck. Next I will introduce the usage of the load data command.
Load data syntax
Connection: mysql-h host address-u user name-p User Password (Note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (Press ENTER)
Create authorization: grant select on database. * to username @ login host
Thanks for the Code provided by XP!Record it here, because it will be used later. It will be used for data query!Step 1: mysql-h localhost-urootStep 2: show databases;Step 3: use changchunmap;Step 4: show tables;Step 5: load data local infile
Modify and view the character set of the MySQL databaseModify my. CNFVI/etc/My. CNFAdd under [client]Default-character-set = utf8Add under [mysqld]Default-character-set = utf8
5. View Character Set settingsMysql> show variables like 'collation _ % ';
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.