1. View the current session isolation levelSELECT @ @tx_isolation;2. View the current isolation level of the systemSELECT @ @global. tx_isolation;3. Set the current session isolation levelSet session transaction Isolatin level repeatable read;4. Set
Inserting data using Insert
Insert a full line
Insert part of a row
Inserting multiple lines
Insert the results of some queries
Insert the full line first look at the original customer list:Insert one line: INSERT into
1. Check if the event is turned onSHOW VARIABLES like ' Event_scheduler ';2. Open EventSET GLOBAL event_scheduler = on;3. Create an EventDELIMITER $$--SET GLOBAL Event_scheduler = on$$--Required for event to execute and not createCreate/*[definer = {
Case: The following SQL statement causes the MySQL instance memory to skyrocket: SELECT * FROM tables where table_name not IN (select table_name from partitions GROUP BY TABLE_NAME have COUNT (*) >1); MySQL 5.5, 1w+ 's InnoDB table.Let's look at
When phpMyAdmim and Yii are connected to Mysql, an error is returned.Faults:
Before phpMyAdmim and Yii connected to Mysql, one day, the following error was reported:
1. "The mysqli extension is missing in phpMyAdmin in linux. Check the PHP
Can't connect to local MySQL server rhrough socket Solution
When I log on to mysql today, the error "Can't connect to localmysqlserverrhrough socket" is displayed. The problem Can be solved based on two posts.
My system is centos
SQL injection test experience tutorial
Logon Injection
First, let's look at a general logon Page SQL statement (the SQL statement executed by the original ecology php)
$ SQL = "select * from users where username = '$ username' and password =' $
Unable to connect to the new mysql third-party toolMysql cannot be connected from the client to the server. The company uses Mysql for a test and starts to build a local Mysql database and connect it to it. No connection failure has been encountered.
MySQL Partitioning technology (1)
4: MySQL Partitioning technology (mysql 5.1 is used after version-> it is the technology that the maintenance personnel of the Oracle mysql Technical Team inserted into mysql as plug-ins)
Currently, there are two
Use Limit in MySQL Big Data
Today, I am very surprised that the performance of the same function in MySQL varies by order of magnitude.
First look at the unique id key index title of the ibmng (id, title, info) table.
Let's take a look at the two
Mysql -- Automatic growth, mysql -- Growth
Create table teacher (T_id int primary key auto_increment,# Auto_increment automatic growth requires an integer type and an indexT_name varchar (20 ),T_class varchar (20 ),Days tinyint unsigned);
# Set
[MySQL Case] mysql local logon-S is invalid
1.1.1. The-S parameter is invalid when mysql is logged on to the local machine.
[Environment description]
Mysql5.5.14
[Problem description]
Multi-instance Configuration
Instance 1
Instance
High Availability of MySQL-keepalivd + mutual Master/SlaveObjective: to configure a keepalived Hot Standby architecture and master-slave ReplicationPlanning:Master1 zlm177 192.168.17.177Master2 zlm188 192.168.17.188Vip 192.168.17.166Environment: Red
Fully uninstall mysql (stop the service, uninstall related programs, delete the registry, and uninstall mysql)
1. Stop MySQL Service
2. uninstall mysql-related programs
3. Delete the Registry (run-> regedit), machine-> system->
Common MySQL database commands
In daily work, mysql is used simply, so the Common commands are summarized as follows:
Use the mysqldump command:
Back up and export Databases
Mysqldump-h database_ip-u Username-p -- opt databasename> backup-file.
A strange thing in mysql
I have a table in my database. I suddenly cannot open it today ..
In phpmyadmin, click the table prompt "Unknown column 'operator' in 'where clause order'", which means there is no operator field.
Although this table
MySQL search: WHERE multi-Condition
WHERE can be searched by multiple conditions.
The products table is as follows:
After a WHERE, search by and based on two conditions and three conditions: VcD4KPHA + pgltzybzcm9
MySQL character encoding system (I)-data storage Encoding
MySQL has been installed many times, and every time it will be entangled in the character encoding configuration of the database, so I decided to thoroughly clarify it this time.
The
Mysql remote connection is acceptable. Local Connection reports an error
Use the MySQLdb library of python to connect to the local mysql database. The error is as follows:
File "/usr/lib/python2.7/dist-packages/MySQLdb/_ init _. py", line 81, in
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.