Only good library table structure, reasonable index is not enough, we also need reasonable design inquiries, goes hand in hand, a lot of can give full play to the advantages of MySQL.
Why is the query slow?
Each query consists of a series of
Here goes the optimizer section in the previous article:
How MySQL executes associated queries
MySQL performs nested loops associated operations on any association, that is, to loop out a single piece of data in a table, and then to nest loops
MySQL has 6 kinds of logs, you must know when monitoring the database system
Select Log
Slow Select Log
Change Log
Binary change log (Binlog)
Alarm Log
The error log.
Can be configured in MY.CNF
Parameters
Description
Log
Text Select Log,
1. IntroductionWhen using MySQL's replication mechanism to achieve master-slave synchronization, it was implemented by three threads, one I/O thread from the library, one I/O thread and one SQL thread. At configuration time, the main library needs
High Availability is divided into three layers:
1. Implementation of the underlying information layer:HeartbeatCorosyncCman2. Resource Management, implementation method:Heartbeat-V1: haresourceHeartbeat-V2: crmHeartbeat-V3: pacemakerRHCS:
High Availability is divided into three layers:
1. Implementation of the underlying information layer:HeartbeatCorosyncCman2. Resource Management, implementation method:Heartbeat-V1: haresourceHeartbeat-V2: crmHeartbeat-V3: pacemakerRHCS:
Known table t1 {code ...} you want to query {code ...} data is rearranged by php {code ...} get the data in the following structure {code ...} in this process, how should I write PHP code or algorithms? Please advise. Known table t1
Id txt parent --
MySQL logs can be set up via MySQL's my.cnf file. However, if the log file is not cleaned or recycled for a long time, it will cause the log file to become bigger and larger, thus affecting the performance of MySQL. And the use of the RPM package
Guide
In general, the development of small and medium-sized web sites have chosen MySQL as the site database, because of its community edition of Performance Excellence, with PHP, Linux and Apache can form a good development environment, after
1. Download MySQLI downloaded the version: mysql-5.6.4.tar.gz2. Uninstall the CentOS-brought MySQL before installing[[email protected] ~]# yum remove MySQL3. Compile and install CMakeDownload CMake Source package:
1. Download MySQLVersion I downloaded: mysql-5.5.22.tar.gz
2. uninstall MySQL that comes with CentOS before installation[Root @ localhost ~] # Yum remove mysql
3. Compile and install CmakeDownload cmake source package: http://www.cmake.org/files/v2.8
Install and configure mysql5.6 and centos7mysql5.6 in Centos7
Centos7 replaces the default database mysql with Mariadb, which is not good news for those of us who want to use mysql.
Recently I have collected various installation tutorials on the
Note: If you mistakenly delete the Ibdata file, do not kill the mysqld process at this time, otherwise it can not be saved.1. Simulate the deletion of ibdata data files and redo log files:[email protected] data]# LLTotal 421944-rw-r-----. 1 mysql
Character functions(1) CONCAT (): Character connectionSELECT CONCAT (' Imooc ', '-', ' MySQL ');//imooc-mysqlSELECT CONCAT (First_name,last_name) as FullName from test;(2) Concat_ws (): Use the specified delimiter for character joins, (the first
It's not very good, I hope you can have a lot of spit >__MySQL Master-Slave Summary One, principle (1) Process a---change data---> Record bin_log---> Transfer (upload)----> B---> Repl_log (record their own log repl_log )----> Change data (Changing
First, install MySQL1, production environment How to choose MySQL version1. Select the stable GA version of the Community edition2. You can choose 5.1 or 5.5. Internet company mainstream 5.5, followed by 5.1 and 5.63. Select the GA version for more
About IBTMP1 recovery space only restart the database, a little pit ah ah Ah![[email protected] data]# ls-lhtotal 7.6g-rw-r-----1 mysql mysql-Jul 17:22 auto.cnf-rw-r-----1 mysql MySQL 142K Jul 16:56 ib_buffer_pool-rw-r-----1 mysql mysql 12M Jul 17:15
I just migrated the app that originally developed AppFuse2.1 under Windows 7 to Ubuntu11.04, enabling Maven3.0.3 and EclipseGalileo to develop source code and deploy the WAR package to tomcat6. Ubuntu is a Linux Desktop System with a market share of
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.