MySQL common statements

mysql login mysql -uroot -p password mysql -hip -uroot -p Password for connection target mysql --host=ip --user=root --password=Password for connection target MySQL exit exit quit DDL: operation database and table Create database create database Database name; Create a database, judge that it does not exist, a ...

Added by Design on Wed, 29 Sep 2021 21:03:30 +0300

Mysql from deleting database to running -- constraints of 2Mysql

1, Restraint· 1. Primary key constraint We can add constraints to a data table of a data table so that it can uniquely identify a data table. After being constrained, the data is not repeated and not unique: primary key mysql> use test; mysql> create table number( -> id int primary key, -> name varchar(20) -> ...

Added by jpaloyo on Tue, 28 Sep 2021 13:32:20 +0300

Software testing MySQL

1 Introduction to MySQL database MySQL is a relational database. Due to its small size, fast speed, low total cost of ownership and open source, many small and medium-sized websites choose MySQL as the website database in order to reduce the total cost of ownership. Other advantages: it can be combined with other development languages, por ...

Added by doreg28 on Tue, 28 Sep 2021 12:07:44 +0300

MyBatis if tag: conditional judgment

MyBatis if is similar to the if statement in Java. It is the most commonly used judgment statement in MyBatis. Using the if tag can save a lot of work in splicing SQL and focus on the maintenance of XML. The if statement is simple to use and is often used in combination with the test attribute. The syntax is as follows. When the judgment con ...

Added by elpaisa on Mon, 27 Sep 2021 22:54:39 +0300

JS day14 - PHP and MySQL

1.PHP: php installation:     Install - double click exe  —— Find the installed folder - double click the executable exe - click start 1. Double click exe:   2. After installation, execute exe and click Start: 3. When the status is green, the installation is successful:     php application: How to acces ...

Added by Nameless12 on Mon, 27 Sep 2021 15:03:01 +0300

1, Mysql database

1, Mysql database 1. What are sql, DB and DBMS, and the relationship between them? DB: database (database, which actually exists as a file on the hard disk)DBMS: database management system (database management system, including Mysql, Oracle and DB2)SQL: structured query language, a standardized general language. Standard SQL is suitable for ...

Added by psychohagis on Wed, 22 Sep 2021 16:38:17 +0300

MySQL optimization and locking mechanism

MySql logical architecture It is mainly divided into: connection layer, service layer, engine layer and storage layer. The process of the client executing a select command is as follows: Connection layer: the top layer is some clients and connection services, including local sock communication and most communication similar to tcplip b ...

Added by mfos on Wed, 22 Sep 2021 04:36:36 +0300

Database notes 01 introduction to MySQL and SQL statements

Database notes 01 introduction to MySQL and SQL statements (Part I) 1, Server, database introduction: The server: Concept: a computer that can provide a service. A server is a combination of hardware and softwareDatabase server: a computer equipped with database software, which can provide data addition, deletion, modification and query ...

Added by wiseass on Tue, 21 Sep 2021 14:01:34 +0300

Establishment and use of MysqlCluster cluster

Distributed data storage solution for 100 million users 1 1. Introduction MySQL Cluster is a high-performance, scalable and clustered database product. Its original intention of R & D and design is to meet the most severe application requirements in many industries. In these applications, the reliability of database operation is often ...

Added by AbydosGater on Tue, 21 Sep 2021 11:38:58 +0300

Synchronize Canal Mysql binlog to Hbase ES

1, Canal introduction In the early days, Alibaba had the business requirement of cross machine room synchronization due to the deployment of dual machine rooms in Hangzhou and the United States. The implementation method was mainly to obtain incremental changes based on the business trigger. Since 2010, the business has gradually tried to obta ...

Added by Voodoo Jai on Tue, 21 Sep 2021 04:39:54 +0300