MySQL as the most commonly used database, often encountered a variety of problems. What we're going to say today is the changes to the table storage engine. There are three ways, the list is as follows.
1. True connection modification. It is slower
Opening query statement caching is also a strategy to optimize MySQL.
MySQL is a common database for our development programs. It has the ability to cache common query statements in memory, so that when a given query statement is invoked again,
This article describes how to cooperate with the former to achieve keepalived dual-machine hot standby
System environment: CentOS 6.3 x64
MySQL version: mysql-5.6.10
Keepalived version: keepalived-1.2.7
mysql-vip:192.168.7.253
mysql-master1:192.
1. GetAll method We can use the GetAll method instead of the Execute () method, which returns the result as a two-dimensional associated data, which can be easily handled using either a foreach or a For loop statement. In addition, the array
Scenario: Perform a full backup every Sunday and perform an incremental backup 1 o'clock in the afternoon every day
Configuration
The prerequisite for performing an incremental backup is that MySQL opens the log-bin log switch, for example in
Article attribution: http://feiyan.info/16.html, I want to write to myself, but found this June summed up very detailed. Moved right over here.With regard to the benefits of MySQL indexing, if the correct design and use of the indexed MySQL is a
The company MySQL architecture is a master multi-slave. In the daily use of the process we often encounter the main never sync, in order to deal with this problem in a timely manner using Zabbix monitoring MySQL master and slave state and set the
Because the database additions and deletions suddenly burst, need to query is the operation of those tables is particularly frequent, wrote a tool to analyze Bin-log, find and add to change the table, and the number of operations in descending order,
Original address: MySQL configuration file my.cnf detailed Gron
Basedir = Path
Use the given directory as the root directory (the installation directory).
Character-sets-dir = Path
Gives the directory where
Title, recently http://www.12reads.cn/MySQL often hangs, recently hangs the log:At time:wed Dec 7 09:15:01 CST 2016:mysql error STOP. At time:wed Dec 7 09:30:01 CST 2016:mysql error STOP. At time:wed Dec 7 10:00:02 CST 2016:mysql error STOP. At Time:
Install MySQL under CentOS, with the root account of MySQL, see the database results only Information_schema library, my original library and MySQL library are missing, and then execute the use MySQL prompt error, as follows:650) this.width=650;
1, Shared lock experimentSession1Build a table Lisa and insert data in Session1Mysql> CREATE table Lisa (name char (ten), age int (5));Mysql> INSERT into Lisa values (' Lisa ', ' 26 ');Add a shared lock to the age=26 lineMysql> set
In the/etc/my.cnf file, in the [Mysqld] section, addskip-grant-tables then restart Mysqld Login to modify the root password of MySQL/usr/bin/mysqlwelcome to the mysql Monitor. commands end with ; or \g. your mysql connection id
Ubuntu under shutdown Apache and MySQL boot upsudo Install sysv-rc-confsudosudo vi/etc/init/mysql. conf Ubuntu Run-level summaryGeneral Linux is divided into 7 levels: 0 for shutdown (Halt) 1 level is single-user mode 2 level is multi-user
SQL paging query Stored Procedure Code sharing, SQL stored procedure
For more information, see the code.
---------------------------------------- Author: Zhang Xinyu ----- time: 2013-06-28 ----- Introduction: query by parameters and conditions by
Mysql database performance optimization sub-query and mysql database performance optimization
I remember that when I was working on a project, I heard a sentence and tried not to use subqueries. So let's take a look at this article to see if this
Detailed description and comparison of the four transaction isolation levels of MySQL, and detailed description of mysql
Detailed description and comparison of the four transaction isolation levels of MySQL
At the SQL: 1992 transaction isolation
Install mysql 5.7.16 linux glibc2.5 x86 64 (recommended) and centos5.7.16 in CentOS 6.5
1. Download mysql-5.7.13-linux-glibc2.5-x86_64.tar.gz from official website
Tested, this article also applies to the following versions:
MySQL-5.7.10-Linux-glibc2
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