MySQL optimization--Ye Jinlong Teacher Lecture Notes

Copy to TMP tableWhen you modify the table structure by ALTER TABLERecommendation: Early morning executionCopying to TMP tableCopy data to a temporary table in memory, common in group by operationsRecommendation: Create an indexCopying to TMP table

MySQL Storage Engine

About MySQL:is a relational database management system developed by the Swedish MySQL AB company, currently owned by Oracle Corporation.MySQL is an associated database management system that keeps data in separate tables rather than putting all of

131 MySQL Automatic backup scripts

Wrote a MySQL backup script, everybody look, what's wrong with the place.This is the first shell script I wrote, let's see,I can send it to someone who needs it.You can put this script in crontab, do it every morning, and automatically back upThis

9 principles of MySQL statement optimization

1. Use the index to traverse the table more quickly.The index established by default is a non-clustered index, but sometimes it is not optimal. Under a non-clustered index, the data is physically randomly stored on the data page. A reasonable index

MySQL adds a column of commands to a table in one place

If you want to add a column to a table that has already been built, you can use the following example:ALTER TABLE t1 add column addr varchar (a) not null;This statement adds a column of addr to the existing table T1, which is the last column in the

MySQL log format Binlog_format

There are 3 different formats for binary logs (Binlog) in MySQL 5.5: Mixed,statement,row, the default format is Statement. Summarize the pros and cons of these three format logs.MySQL Replication replication can be based on a single statement

MySQL Source installation

Operating system: centos6.4650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/CE/wKiom1U3OYaCEYuZAACYKQCYY9I334.jpg "title=" 4.png " alt= "Wkiom1u3oyaceyuzaacykqcyy9i334.jpg"/>Firewall settings650) this.width=650; "src="

MySQL Source code compilation

Cmake-dcmake_install_prefix=/opt/mysql \-ddefault_charset=utf8 \-DDEFAULT_COLLATION=UTF8_GENERAL_CI \-DWITH_EXTRA_CHARSETS:STRING=UTF8,GBK \-dwith_myisam_storage_engine=1 \-dwith_innobase_storage_engine=1 \-dwith_readline=1 \-denabled_local_infile=1

MySQL master-Slave synchronization configuration

1. Note: Before synchronizing, be sure to authorize the operation to the from server grant all slave on * * to [E- Mail protected] identified by ' Pass ' view Binlog show Master Stat us Clear Binlogreset Master;2, General master server to add,

MySQL Add index

1. Add primary key (primary key index)Mysql>alter TABLE ' table_name ' ADD PRIMARY KEY (' column ')2. Add unique (unique index)Mysql>alter TABLE ' table_name ' ADD UNIQUE (' Column ')3. Add index (normal index)Mysql>alter TABLE ' table_name ' ADD

Common commands used to monitor MySQL database maintenance (reproduced)

Status = Show status like '% ' [example: Show status like ' Com_select ']variables = Show variables like '% ' [example: show variables like ' query_cache_size ']1. Number of MySQL queries (taken from show status return information)Com_select;

MySQL Database explain command usage detailed

This article turns from a predecessor's article, feels writes very well, then turns over. This is the old man's original address: Http://www.111cn.net/database/mysql/81698.htmwhen we were optimizing SQL, we wanted to look at the efficiency of the

MySQL-related settings under Linux

After installing MySQL under Linux, it is often necessary to make the following changes to use it more easily1. Add a remote connection userUsually we need to remotely connect MySQL database from outside, MySQL database default is not set to allow

Mysql database rescue

Mysql database rescueSometimes overtime is really not desirable. It happened at a.m.: a very slow server was lent to us by other departments. I was so drunk that Nima could also run the service, I decided to restart the server after two hours of

MySQL permission, mysql permission settings

MySQL permission, mysql permission settings Note: My runtime environment is widnows xp professional + MySQL5.0 1. Create a user: Command: create user 'username' @ 'host' identified by 'Password '; Description: username-the username you will

Use mysql on Mac

Use mysql on Mac 1. Install mysql 2. Start the mysql service in preference settings 3. Open the terminal and enter mysql. chenhong:~ chenhong$ mysql-bash: mysql: command not found 4. Set the mysql command and enter 1) alias mysql

Connect to a remote mysql database in windows

Connect to a remote mysql database in windows Problem description:In windows, connect to and install mysql Databases in CentOS or linux operating systems. This document uses the remote server address 192.168.1.16, the database username root, and

MySQL gets discontinuous values.

MySQL gets discontinuous values.1. Problems A table is displayed as shown in. In the data, running_number should be a continuity of 5 characters. Obtain the running_number that is disconnected from the connection. For example, 00001 and 00005 are

This section describes 10 commonly used MySQL queries when using WordPress, wordpressmysql

This section describes 10 commonly used MySQL queries when using WordPress, wordpressmysql For most websites built using WordPress, the backend is a MySQL database. We often need to customize the WordPress function. Here we list 10 most useful

How to Set mysql encoding?

How to Set mysql encoding? The default mysql code is Latin. Every time a JSP page is created and inserted into the database using an insert statement, the Chinese characters are displayed as question marks. After mysql is installed, start the

Total Pages: 3233 1 .... 2629 2630 2631 2632 2633 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.