Mysql optimization (1) show command slow query log explainprofiling MySQLexplain
BitsCN.com
Directory
I. Optimization overview
II. query and index optimization analysis
1. performance bottleneck locating
Show command
Slow query log
Explain analysis
Migrate the mysql partition bitsCN.com
Today, I found that I forgot to install the largest partition in the data directory of the master-slave mysql server load balancer and directly mounted it to the root partition. I have used root partition 95
For MYSQL configuration replicate, the error 1200 is returned. bitsCN.com
Master server: window XP, mysql 5.5
Slave server: window7, mysql 5.1
When starting The server slave, The system always prompts error 1200: The server is not configured as
MySQL MMM high-availability architecture test bitsCN.com I. Architecture mode (Dual master Zero slave)
========================================================== ======================================
=========================================
It teaches you how to optimize MySQL Query statements to implement efficient paging and easily respond to bitsCN of 60 million requests. on comPERCONA performance conference 2009, several engineers from Yahoo brought a "Efficient Pagination Using
Mysql copies the table structure, table data bitsCN. com1, and copies the table structure and data to the new table.
Create table new table select * FROM old TABLE
This method will copy all content in oldtable. of course, we can use delete from
Use shell scripts to regularly back up MySQL database bitsCN. comPhp
Data Backup is required for any online e-commerce site. Regardless of version updates or server migration, the importance of backup data is self-evident. Manual data backup not
Note: When MySQL was started before bitsCN.com, it was not very normal. it had to be restarted several times, but it was not important to start it. Today, the test has encountered a problem, mySQL can be started normally, but cannot be closed:
Basic mysql operations in linux: bitsCN.com
Java code
1. create a management user for the mysqld database: to set the root user as the administrator, run the following command;
[Root @ linuxsir01 root] # mysqladmin-u root password 123456
Generally,
Implementation of time comparison in MySql bitsCN.com
The unix_timestamp function for time comparison in MySql can accept a parameter or do not use a parameter. The return value is an unsigned integer. If the parameter is not used, it returns the
How to delete Mysql in windows: bitsCN.com
Step 1: Shut down mysql service my computer-> Manage click management the following interface services and applications ------------> double-click the service appears, for example, find mysql service: shut
MySQL message storage engine Q4M trial bitsCN.com
1. install and download the binary package: because mysql is 5.1.48, select the corresponding package from the official website. http://q4m.kazuhooku.com/dist/old/ Decompress the package. copy
Configure master/slave bitsCN.com for one cp mysql in Windows 7
Environment: personal pc Windows 7 one; use: Official Download: mysql-noinstall-5.5.11-win32.zip 1. decompress the package to 2 (folders) mysql_master (master) mysql_slave (slave) 2.
About the maximum length of varchar in MySQL bitsCN.com
I was asked a question: What is the maximum varchar length in MySQL? This is not a fixed number. This article briefly describes the restrictions.
1. restrictions on rule fields the following
Use bitsCN.com for MYSQL triggers
Mysql triggers are in the format of create trigger trigger_name after/before insert/update/delete on one_table for each row your_ SQL. the red part is named by yourself, and the blue part is a value. The Black part
Mysql creates a table and sets the primary key auto-incrementing bitsCN.com
Mysql creates a table and sets primary key auto-incrementing mysql tables: mysql> create table user (-> userid int (4) primary key not null auto_increment,-> username
Mysql database password problem bitsCN. the password of the commysql database was forgotten when I used the mysql database in my experiment. I also searched for it for a long time. now I will introduce my methods to you: mysql functions are used for
Mysql batch import SQL file bitsCN.com has 180 SQL backup files, batch import
First create a new main. SQL file, and then write it in the main. SQL file as follows:
Source C:/SQL/1. SQL;
Source C:/SQL/2. SQL;
Source C:/SQL/3. SQL;
....
MySQL 7-2-storage functions and trigger bitsCN.com creation functions: 1. storage functions are also a procedural object, similar to stored procedures. They are code snippets composed of SQL and procedural statements and can be called from
Materialized view using triggers bitsCN.com
Using triggers to realize the Materialized view on the e-commerce platform, we sometimes need to perform some aggregate calculations on user orders, such as the total number of orders, the total amount,
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