Introduction: Why the introduction of transactions?
1>. Data Integrity
2>. Data Security
3>. Make full use of system resources to improve the ability of system concurrent processing
1. characteristics of the transaction
Transactions have four
The syntax format is as follows
EXPLAIN Tbl_name
Or:
EXPLAIN SELECT select_options
The EXPLAIN statement can be used as a synonym for DESCRIBE, or it can be used to get information about a SELECT statement that MySQL is going to execute.
EXPLAIN
Start the Navicat software, use the "link" to connect the MySQL database, before use, please ensure that the firewall can pass.
-->
-->
Navicat for MySQL download address:
Download Address http://www.jb51.net/database/2223.htmlThen pop up,
I. Overview
Variables are often used in stored procedures, and the use of variables is an important point of knowledge, especially when defining conditions.
MySQL Version: 5.6
Definition and assignment of variables
#创建数据库
DROP DATABASE IF
Inserts into the SQL statement in the MySQL table to insert the data.You can insert data into a datasheet via the mysql> Command Prompt window, or insert data through PHP scripts.GrammarThe following is a generic insert into SQL syntax for inserting
At present, mature real-time backup for dual-computer (Master/slave), is based on synchronous log events to achieve, that stand-alone how to achieve an incremental backup? Can borrow the principle of two machines, very simple, the implementation
MySQL page access statistics and ranking situation
Count the number of pages visited to rank by resolution
SELECT CONCAT (' height ', ' * ', ' width ') as ' resolution ', COUNT (CONCAT (' height ', ' * ', ' width ')) as ' total ' from
'
MySQL sometimes forget the root password is a sad thing, in this case, how to reset the root password it?
Locate and edit the MySQL my.ini configuration file and add skip-grant-table to the Mysqld node. as follows:
# This let you safely
An error like this cannot create a. frm file seems to imply incorrect permissions or other reasons for operating system files, but in reality, this MySQL error has been reported as a bug in MySQL itself and has been in the MySQL developer list for
Through the previous experience of MySQL operation, the MySQL configuration problem is excluded, to see if the MSYQL is running normally, by looking at the MySQL data directory inside the *.err file (change the extension to. txt) Notepad view. If
Usually accustomed to phpmyadmin and other tools of the friend some simply will not command, if you want to have a written exam to interview I see how you do, so, learn to be very useful, you can also know what you have done through the GUI tool
Of course, the appearance of the 5.6 GUID feature also brings the infinite possibility of multi-master, but this is the digression.
This paper mainly introduces a kind of multi-master method which is applicable to every version of MySQL in real time.
This paper summarizes and analyzes the techniques of MySQL query optimization. Share to everyone for your reference, specific as follows:
People who are familiar with SQL statements know that if you want to operate on a task, the SQL statement can
First stop the MySQL service:
Copy Code code as follows:
root@webserver:/home/webmaster# service MySQL Stop
Then recreate a MySQL service using the Ignore Password Authentication mode:
Copy Code code as follows:
MySQL Replace instance description:
UPDATE tb1 SET f1=replace (F1, ' abc ', ' Def ');
REPLACE (STR,FROM_STR,TO_STR)
All occurrences of the string from_str in string str are replaced by TO_STR, which then returns the string
This function is useful
MySQL like syntaxthe LIKE operator is used in a WHERE expression to search for the specified content in a matching field, and the syntax is as follows:
Where column like pattern
WHERE column isn't like pattern
When you precede the like
Although an order by is not exactly the same as an index, an index can be used, as long as the unused index portion and all the extra orders by fields are included in the WHERE clause.
Use the indexed MySQL order bySeveral of the following queries
1. Migrating datafor database porting, SQL server=>mysql. The following trigger are available on SQL Server
SET QUOTED_IDENTIFIER on
go
SET ansi_nulls on
go
ALTER TRIGGER [trg_risks] on Dbo.projectrisk
for INSERT, update
as
BEGIN
Install the MySQL 5.1.48 or MySQL 5.5.8, configure the last click on the Execute button, but not the Start service step. Check the MySQL system service has been added, but can not start, manual also not. With Event Viewer you can see several errors
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