Technology sharing | on mysql syntax parsing and debugging methods

Welcome to the MySQL technical articles shared by the great SQL community. If you have any questions or want to learn, you can leave a message in the comment area below. After seeing it, you will answer itThis article introduces you to a method of sql syntax parsing and tracing using mysql parser and bison's debugging options.In the process of ...

Posted by Cogen2 on Mon, 13 Dec 2021 07:41:18 +0100

Some basic SQL operations

I DDL – operating databases and tables 1. Query SHOW DATABASES; 2. Create Create database CREATE DATABASE Database name; Create database (judge, create if it does not exist) CREATE DATABASE IF NOT EXISTS Database name; 3. Delete Delete database DROP DATABASE Database name; Delete the database (judge, delete if it exists) ...

Posted by Swedie on Mon, 13 Dec 2021 07:31:47 +0100

Fault case | how does lsof "affect" MySQL to calculate the number of open file handles

Welcome to the MySQL technical articles shared by the great SQL community. If you have any questions or want to learn, you can leave a message in the comment area below. After seeing it, you will answer itDifferent parameters added to lsof will produce different results. Be careful of "stepping on the pit".1. Background:It was acciden ...

Posted by orudie on Thu, 09 Dec 2021 13:44:39 +0100

JDBC -- transaction ORM (object relational database mapping) DAO (data access object)

Transaction It exists in both SQL server and Mysql It refers to the smallest unit to complete an application processing, which is composed of one or more statements operating on the database. If all operations are successful before submitting a failure, all operations will be cancelled and restored to the previous state. 1. Cases where transac ...

Posted by starsol on Thu, 09 Dec 2021 09:32:42 +0100

DVWA level 8: SQL Injection (Blind)

catalogue Low Medium High  Impossible SQL Injection (blind), that is, SQL blind injection, is different from general injection in that the general injection attacker can directly see the execution result of the injection statement from the page, while during blind injection, the attacker usually cannot obtain the execution result from the ...

Posted by dmcke5 on Wed, 08 Dec 2021 21:11:46 +0100

Wan Da #1, how to query IS (intention to share) locks on a table in MySQL

Welcome to the MySQL technical articles shared by the great SQL community. If you have any questions or want to learn, you can leave a message in the comment area below. After seeing it, you will answer itproblemThe original question is as follows:If you add a shared lock to a row of a table in a MySQL transaction, in theory, the table itself w ...

Posted by Dagwing on Wed, 08 Dec 2021 10:28:46 +0100

Note the primary Sql injection combined with secondary injection and error reporting injection

preface: The article was first published in https://sleepymonster.cn This is a question for the finals of the 2021 Jinan University freshman competition. At that time, I was gambling. If I did it, I would win the second prize Unfortunately, the network is not powerful enough to suck out second times without changing the script. But I'v ...

Posted by Craig_H on Tue, 07 Dec 2021 23:52:20 +0100

Principle of Mybatis Plus dynamic SQL generation

         Mybatis plus (MP) is an enhancement tool for mybatis, so how is it enhanced? In fact, it has encapsulated some crud methods, so there is no need to write xml for development. Just call these methods directly, which is similar to JPA. The structure diagram of mybatis plus is as follows: Entry cla ...

Posted by servo on Mon, 06 Dec 2021 03:23:46 +0100

MySQL basic learning notes

🔎 MySQL notes Retrieve data Retrieve different rows select distinct vend_id from products Limit the result, that is, limit the number of rows output select prod_name from products LIMIT 4,5 //Indicates that five rows of data are retrieved from the fourth row. The first is the starting position and the second is the number of rows to be r ...

Posted by uramagget on Sun, 05 Dec 2021 08:03:52 +0100

05 SQL statement execution process parsing 1 - query analysis and optimization rewriting

sql execution statement flow analysis The whole processing flow is in exec_simple_query function. The code structure is as follows: /* * exec_simple_query * * Execute a "simple Query" protocol message. */ static void exec_simple_query(const char *query_string) { ... //Original syntax tree acquisition /* * Do basic parsing of the quer ...

Posted by refiking on Sat, 04 Dec 2021 04:35:19 +0100