In order to popularize the basic knowledge of MySQL, deliberately get this chapter, mainly found that the first contact people do not know how to do, or do not understand, so here is the details of the=================================================
The InnoDB data table structure is as follows:
The code is as follows
Copy Code
Create table:create Table ' Tinnodb ' (' id ' int (one) DEFAULT NULL,' Content ' Mediumtext) Engine=innodb DEFAULT Charset=utf8
For some large data systems, the problem is that the query efficiency is low, and there is a very important problem is that the insertion time is long. We have a business system that requires 4-5 clocks per day for data import. This time-consuming
MysqlimportExamplemysqlimport-uroot-p123456 Test/tmp/mytbl.txt;Convention: The last part of the file name is the table name, and the above statement is imported into the table MytblMysqlimport must specify the database, the above statement database
MySQL database authorization principle server restart
When mysqld is started, all authorization table content is read into the memory and takes effect from that time.
Immediately applied by the server
Modifications made to the authorization table
Mysql insert limit 1. if many rows are inserted from the same client at the same time, use the INSERT statement containing multiple values to INSERT several rows at the same time. This is faster than using a single-row INSERT statement (several
This article mainly introduces the open-source MySQL efficient data warehouse solution: Infobright details. This article describes the features of Infobright, the value of Infobright, the applicable scenarios of Infobright, and the comparison with
1. if many rows are inserted from the same client at the same time, use the INSERT statement containing multiple values to INSERT several rows at the same time. This is faster than using a single-row INSERT Statement (several times faster in some
MySQL improves Insert performance and mysqlinsert Performance
The time required to insert a record is composed of the following factors, and the number indicates the approximate proportion:
Connection: (3)
Send query to server: (2)
Analysis
MySQL server permission table prompt: the MySQL server uses the permission table to control user access to the database. The permission table is stored in the mysql database and initialized by the mysql_install_db script. These permission tables are
MySQL Security Guide (2) 2.1.3 database and table permissions the following permissions apply to database and table operations. MySQL Security Guide (2)
2.1.3 database and table permissions
The following permissions apply to database and table
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
MysqlLoadDataInFile usage bitsCN.com first creates a table
Use Test;
Create Table TableTest (
'Id' mediumint (8) default '0 ',
'Name' varchar (100) default''
) TYPE = MyISAM;
Import data to a data table
Load Data InFile 'C:/Data.txt 'Into
The field table is not specified, So load data infile expects the input row to contain a field for each table column. Use the default fields and lines values.
If you want to load only some columns of a table, specify a field table:
Mysql tutorial>
Server restart
When mysqld is started, all authorization table content is read into the memory and takes effect from that time.
Immediately applied by the server
Modifications made to the authorization table using Grant, revoke, or set password will
Mysql load data command parses and processes error 29 (ErrCode: 13) (In ubuntu environment), errcodeubuntu
On the mysql server, run the following command:
load data infile 'file_name' into table table_name;
Store all data in a text file in a
The field table is not specified, so the load data infile expects the input row to contain a field for each table column. Use default fields and lines values.
If you want to load only some columns of a table, specify a field table:
MySQL
Server reboot situation
When the mysqld is started, all the authorization table contents are read into the memory and come into effect from then on.
Be immediately applied by the server
Modifications to the authorization table with GRANT, REVOKE,
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.