In the MySQL tutorial | The Novice Tutorial system Review Some of the knowledge points have not mastered or the way of thinking has not fully followed the place, wrote a note, reasoning this note for any reader other than me has no practical value,
Polymerization
5 aggregation functions are available for fast statistical data
COUNT (*) means that the total number of rows is computed, the parentheses are written with the name of the column, and the result is the same
Query the
Basic syntax for queriesSELECT * from table name;
The FROM keyword is followed by a table name, indicating that the data originates from this table
The column name in the table after the SELECT, if * indicates that all columns in the
Locate the previous MySQL installation package and reinstall MySQL.1. Set the environment variable, WIN10 can right-click this computer-properties, add the path of the MySQL file bin in the system variable path2. Modify the configuration file
Environment : Centos 6.9,mysql 8.0
Configuration preparation: 1, configure the network for CentOS, connect using Remote Tools.2, installation of MySQL, the path is not limited. (I use RPM package installation, after installation to start the
1, in MySQL's My.ini file2 Create a Binlog folder under my D drive3 Restart MySQL service can see my d drive under the binlog below to generate the following files4, create the T_one1 table in the default test databaseCREATE TABLE T_one1
1. Download MySQLwget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.11-el7-x86_64.tar.gz2. Check if Linux installs MARIADB database, MARIADB database is the branch of MySQLYum List Installed | grep mariadbIf the MARIADB database is installed
Manually compiling and installing MySQL on a virtual machine Linux system1, first of all the MYSQL-5.5.24.TAR.GZ source code package ready, extracted to the virtual machine Linux/opt folder.2. Install the necessary basic tools through the Yum
First, MySQL database master-slave replication principleMySQL master-slave replication is actually based on binary logs, and the principle can be represented by a graph:Divided into four steps to go:1. The main library writes all the logs generated
Recently with friends to build a project, with the Spring+mybatis+mysql.I met a mybatis today. When inserting data into MySQL, Chinese is displayed as '??? ' Problem, take out the next.For the database operation in the Chinese garbled, there are
Row-level locks are the least granular type of lock in MySQL, and can greatly reduce the conflict of database operations. But the smaller the granularity, the higher the cost of implementation. The MyISAM engine supports only table-level locks,
1 /*Note:2 1, fields and values to correspond3 2. The data type of the value is the data type of the field4 3. When the field entered is all the fields in the table, the field can be omitted without writing:5 INSERT INTO login values (' Zhangsan ', '
I. Features added in MySQL 8.01. New System Dictionary TableConsolidates transactional data dictionaries that store information about database objects, all of which are stored with the InnoDB engine2. Support for DDL atomic operationThe DDL of the
1 --1. DECLARE exit HANDLER for SQLEXCEPTION statements can be followed by a compound statement block with begin end, or directly with a simple statement such as: DECLARE EXIT HANDLER for Sqlexcepti on v_succ=0;3 --2. Exit executes the statement or
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