Mysql source code learning-creating the exclusive syntax bitsCN.com
Syntax analysis-YACC
Anyone who has been familiar with SQL statements will have read this or that SQL Manual. Its Syntax Standard should start with SQL92. when reading the SQL92
Mysql source code learning-lexical analysis MYSQLlex bitsCN.com
Lexical analysis MYSQLlex
After the client sends an SQL statement to the server, the server first performs lexical analysis, and then performs syntax analysis and semantic analysis
How to correctly and reasonably set up the MYSQL database index bitsCN.com for normal MySQL operations is fast enough if the data volume and traffic volume are small. However, when the data volume and traffic volume increase sharply, MySQL is found
MySql Performance-related concepts (performance tip0) bitsCN.com
Topic: this is something that was recently recorded in high-performance MySqL version 2 ~
# Read locks (shared locks) and write locks (exclusive locks): Read locks are shared and are
Mysql has a large number of locked processes, bitsCN.com, to test a program in the past two days. this program has access to the mysql database with a large amount of data. recently, it was accidentally unavailable.
Using navicat to check the
Create a trigger for mysql bitsCN.com. The trigger creation syntax is as follows:
Create trigger trigger_name trigger_time trigger_event
ON tbl_name for each row trigger_stmt
Trigger_name indicates the trigger name, which you can specify;
Mysql5.4startservice, applysecuritysettings error solution bitsCN.com solution:
1. uninstall MySQL.
2. type regedit in "run" to enter the registry.
3. delete the HEKY_LOCAL_MACHINE/SOFTWARE/MYSQL directory.
4. delete the
After mysql regularly executes bitsCN. com5.1, MYSQL supports the scheduled execution (event) function, which is similar to linux crontab.
First, check your MSYQL version and the SQL statement for querying version information:
Select VERSION
The special statement in MySQL queries bitsCN. com1. calculate the total number of records in the data table. the SQL statement mysql> select count (*) from openes; + ---------- + | count (*) | + ---------- + | 136 | + ---------- + 1 row in set (0.00
Redhat
BitsCN.com I have installed redhat on the virtual machine and installed the mysql database. it is locally accessed through java and accessed directly using jdbc. Later, I found that there was a garbled problem when the database stored Chinese
MySQL numeric hexadecimal conversion (using conv) bitsCN. comMySQL numeric hexadecimal conversion (using conv)
CONV (N, from_base, to_base)
Converts numbers between different digit bases. Convert the number N from from_base to to_base and return
MySQL and handle bitsCN.com
1. environment
OS: Win 2003 Server (X86)DB: MySQL 5.1.30-community-log
2. problem
The number of handles occupied by the MySQL Server is too large, and the consumption process of the handle is faster than the release
Mysql5.6.4 supports nosql bitsCN.com
In the latest mysql-5.6.4-labs-innodb-memcached, The nosql function of key/value is implemented, and its main principle is as follows:That is, in addition to listening to Port 3306, mysqld listens to port 11211
Mysql sets the method of allowing external access bitsCN.com
Configure the password of an external access account
Log on to mysql locally
Java code mysql-uroot-p execute Java code grant all on *. * to rails @ 'Client _ IP' identified by 'password'
Modify the field bitsCN.com in mysql
The method for adding fields in MySQL is not complex. The following describes how to add and modify fields in MySQL. it is helpful for you to learn how to add fields in MySQL.
1. log on to the database> mysql-u
How to install Mysql in Ubuntu
BitsCN.com
Installing MySQL sudo apt-get install mysql-server should be simple, and I don't think there is much problem with installation, so I will not talk about it much. let's talk about the configuration below.
MySQLerror121amp; amp; error150 analysis bitsCN.com
Today, the external keywords are used for writing Database Scripts. two types of errors are encountered during the runtime: 121 and 150. I found a solution on Google. They are explained as follows:
Delete bitsCN.com from string or space function in mysql
Deletion of the space function in a string or field in mysql ltrim function mysql> select concat ('. ', ltrim ('ddd '),'. '); rtrim functions mysql> select concat ('. ', rtrim ('ddd '),'. ');
View the mysql execution plan bitsCN.com
View the execution plan of mysql. the SQL statement is executed for 4 minutes, and the message_message contains 1000 million data. the execution plan of mysql is learned.
Select * from message_message where
About the implementation of its own foreign key trigger bitsCN.com about its implementation of its own foreign key trigger currently encountered such a foreign key definition: 't_ gir '. 'tb1 'straint' fk _ 1 'foreign key ('r _ id') REFERENCES 'tb1'
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