1. The database stores data in a manner similar to Excel.I. Introduction of the Database1. What is a database? A database is a warehouse that organizes, stores, and manages data according to its structure, and each database has one or more different
Select Date_format (create_date, '%y-%m ') as Jltime,COUNT (*) as JlallFrom Amp_alarm_log a group by Jltime ORDER by Jltime DESC LIMIT 12SELECT B. ' Name ' as AreaName,COUNT (C.area_code) as CompanysumFrom Sys_area bLeft joins Amp_ent_info C on B. '
An initial knowledge of SQL languageSQL (structured query Language, structured queries language)The SQL language is primarily used to access data, query data, update data, and manage relational database systems, which are developed by IBM. There are
CentOS7 default database is MARIADB, configuration and so on is not used to, so decided to change to MySQL, but the CentOS7 yum source default seems to be no MySQL. To solve this problem, we need to download the MySQL repo source first.1. Download
MySQL optimization, can be divided into three parts: index optimization, SQL statement optimization, table optimization1. Optimization of indexes
As long as the column contains null values, it is best not to set the index in this example,
1, download the connection MySQL database jar 2, copy the file to the Jmeter\lib\ext directory, my is: D:\Program files\apache-jmeter-2.11\lib\ext or start JMeter, In the test plan click Browse to add the jar package just copied 3. Add DBC
A) Install MySQL database under CentOSA. Source code Compilation installationMySQL Database Source code:https://dev.mysql.com/downloads/mysql/MySQL database compilation and installation process, can refer to the following
Cartesian product Select * from a a a B; no conditions are required, two tables are multiplied.Connection type: Cross connection, inner connection, outer connection.(1) Cross connection, basically is the same as the Cartesian product connection.
What is a MySQL trigger, let's look at the meaning of the trigger first. The literal meaning of a trigger is a reaction triggered by a touch.MySQL must know that the trigger is interpreted as a MySQL statement (or a set of statements between the
Modify the MySQL My.ini file to add[Client] Default-character-set=utf8mb4port=3306[MySQL]Default-character-set=utf8mb4[Mysqld]port=3306Character-set-client-handshake = FALSECharacter-set-server=utf8mb4#collation-server = utf8mb4_unicode_ci//If this
Delete and truncate and drop differences(Personal understanding, if any errors, please indicate)Delete Delete method:Truncate DELETE Data only, deleteDelete Deletes the data only, deletes the entire table first, removes the row and creates (? )Drop
Operations for Backup:1: Physical Backup: Copy database files directly to large databases, but cannot revert to heterogeneous systems, such as Windows2: Logical Backup: Backup is to build tables, build libraries, inserts and other operations
For the CentOS system, these kits can be installed in advance:# yum-y Install GCC Libxml2-dev Curl screen \libpng12-dev autoconf libpcre3-dev make bzip2 \libevent-dev patch libjpeg62- Dev Libcurl4-openssl-dev \libfreetype6-dev g++ libtool libncurses5
Mysql automatically obtains the time date and mysql obtains the time date.
Implementation Method:
1. Set the field typeTIMESTAMP
2. Set the default valueCURRENT_TIMESTAMP
Example application:
1. MySQL script implementation case
--Add
The four transaction isolation levels of Mysql InnoDB and (the issues solved step by step) dirty reads, non-repeated reads, virtual reads, and mysqlinnodb
There are four transaction isolation levels for MySqlInnoDB :(DefaultIs repeatable
MySQL show status Parameter Details, mysqlstatus
Status name
Scope
Detailed explanation
Aborted_clients
Global
Number of connections that are interrupted due to Client termination because the client does not properly
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service