If you are importing the Chinese data, my MySQL set UTF8 character set, so you want to import the Xxx.txt file to save the Utf-8 character set, command load Data infile "D:/websites/sxxxx/test1.txt" Ignore into table ' names ' fields terminated by ',
1. Modify the root user password to remove the empty passwordThe default installed MySQL root user is a blank password, for security purposes, must be modified as a strong password, so-called strong password, at least 8 bits, composed of letters,
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
# Create a table person information table person (string name, int age)Hive> Create Table person (name string, age INT) Row format delimited fields terminated by '\ t' escaped by' \ 'stored as textfile;OKTime taken: 0.541 seconds# Create a table
MySQL is installed in two parts: client and server. After the MySQL server and client are installed, the database tables and the table structures in the database are imported and exported, some SQL commands used now:
> MySQL-u busiusr-p enters the
Mysqlload primary key verification load data LOCAL infile '~ /Documents/load_test.txt 'into TABLE test fields terminated by', 'enabledby '"'lines TERMINATED by'/N ';
1. if the id is not the primary key, it will not stop increasing.
Mysql> load
MySQL hangs the Debugs1. Attaching to MySQL[Email protected]: gdb-p 12321232 is the PID of MySQL2. Show current thread(GDB) Info threads3. Show backtracking for all threads(GDB) thread apply all BTMySQL BINARYMysql> SELECT * from tbl_4;+----+-------+
Excel connects to MySQLEven today we have powerful reporting tools like Microsoft Crystal Reports and other flexible customer management applications, and Microsoft Excel is still the most commonly used tool when analyzing sales statistics and
Mysql common command lines
Mysql common command lines
First, start and stop the mysql Service
Net stop mysql
Net start mysql
Second, log on to mysql
Syntax: mysql-u user name-p User Password
Enter the mysql-uroot-p command, press enter and prompt
Apache: 1. Modify the banner compilation source code and modify the default banner ServerTokens ProductOnly ServerSignature Off.Find ap_release.h in the apache source code package and change # define AP_SERVER_BASEPRODUCT "Apache" to # define
1. Install JDK and set Environment Variables
2. Upload the installation package
3. Decompress
4. Set Environment Variables# Vi ~ /. Bash_profile or VI/etc/profile5. Go to hive Shell# Hive ShellOr# Hive
6. Common Operations
View database
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and then press
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
Reprint marked: www.bagbaby.cn
Http://hi.baidu.com/dd_shop
Background requirements and Status quo
The current log system is also not known as the system, just on several servers with all the logs, relying on NFS share data, and operation, the
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
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
CREATE TABLE User (UserID STRING,Sex STRING,Age INT,Career INT,Code STRING)ROW FORMAT DelimitedFields TERMINATED by ': ';LOAD DATA LOCAL inpath '/home/hadoop03/rating/users.dat ' overwrite into table user;CREATE TABLE Rating (UserID STRING,MovieID
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']
01./*!40101 SET sql_mode= @OLD_SQL_MODE * *;02./*!40014 SET foreign_key_checks= @OLD_FOREIGN_KEY_CHECKS * *;03./*!40014 SET unique_checks= @OLD_UNIQUE_CHECKS * *;04./*!40101 SET character_set_client= @OLD_CHARACTER_SET_CLIENT * *;05./*!40101 SET
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.