Environment: Rehl 6.2 + MySQL 5.6.12Scenario: When using MySQL's replicatio technology, sometimes because of an extension, sometimes because some of the master standby is hung up, we often need to replicate an identical database and then
Recursive querying of tables stored in a tree structure, using navicat for MySQL to create stored procedures Pro_show_knowledge, Parameters-in ' rootid ' int, querying all child node data through a knowledge point and inserting it into a temporary
MySQL switches from the server to the primary server:The steps are as follows:1 Confirm that all synchronization operations have been completed from the server:Stop slave Io_threadShow ProcesslistUntil you see the status: XXX has read all relay log
#表 ( jc_shop_product ) has a status value-whether the shelves (On_sale) to shelves (0) into the shelf (1) and set the shelf time (on_sale_time) Drop trigger if exists update_on_sale_time_of_product;delimiter//CREATE trigger
Recently in the MySQL database of two-way master and slave, learned that keepalived can automatically determine and switch to the available database, try it yourself, to sort out the document.Just declare the environment.Iptables turn on port 3306
MySQL binary log is often said to be the Bin-log, is the MySQL implementation of the changes produced by the binary logging file, its main role is two:* Data Recovery* Master-slave database. For the slave side to perform additions and deletions to
Stored routines (procedures and functions) can be particularly useful in certain situations:
When multiple client applications is written in different languages or work on different platforms, but need to perform t He same database operations.
MySQL Apache php rpm installation procedure under Linux1. Install the CD-ROM with the httpd-2.2.3-5.i386.rpm This package, is Apache, if prompted to install the process of what other packages, look at the hint loaded on.2. Then install the CD-ROM
1. Check if there is a MySQL version of the systemRpm-qa | grep MySQL2, delete the old version of the opening files and libraries (Rpm-e--nodeps XXX)Rpm-e--nodeps mysql-5.1.52-1.el6_0.1.i686rpm-e--nodeps mysql-libs-5.1.52-1.el6_0.1.i686rpm-e--nodeps
First, configure the Yum source after installing MySQL, MySQLdb, Mysql-devel.Yum Install mysql-server Mysql-python mysql-develAfter installation, execute the following command in the Python environment, and no output proves the installation was
MySQL changes the storage engine of database tables
MySQL changes the storage engine of database tables
1. view the original storage engine of the table
Show create table user;
'User', 'create TABLE 'user' (\ n' id' int (11) not null default
(18) partitions in mysql (after development)Overview
Previously, when I saw the partition, I squeezed it out, so it was too big. Yesterday, I finally learned what partitioning is, but that is also the case. Today, we can sum up that good memory is
How to modify the character encoding of mysql5.6.24 decompressed (Installation-free or zip)
1. When We decompress the zip file format to the specified directory and complete the basic environment configuration, open mysql 5.6.24 will find the file
Usage of using in mysql database, mysqlusing
The usage of using in mysql is as follows:
Using () is used for join queries on two tables. The columns specified by using () must exist in both tables and use the join conditions.
Example:
Copy
MySQL obtains all the date points of a month.1. Problems
As the title says, use MySQL to get all the days of a month in a certain year. For example, obtain all dates of January 1, February 2014.
2. handling process
2.1 create a digital auxiliary
MySQL database Triggers
1. Trigger with only one row of statements executed
Trigger triggers are events that trigger certain operations, such as insert, delete, and update.
For example:
create trigger t_user_trig before inserton t_user for each
Sorting and using MySQL built-in functions
See mysql Official Website: Introduction to functions and operators
For time and date functions, see Mysql5.5 official documentation.
General examples
1. view the current system date
Call the date
Mysql architecture Arrangement
MySQL is composed of data files and database instances. It is a single-process, multi-thread architecture.Database Files: a collection of physical operating system files or other files. In mysql, database files can
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