Mysqldump full backup script mysqlallbackup. sh -- amp; gt; (old document sorting) mysqldump
BitsCN.com
Mysqldump full backup script mysqlallbackup. sh --> (old document sorting)
The database is small, about 16 GB, and the daily increment is small,
Last_IO_Errno: 1236Last_IO_Error: Gotfatalerror1236frommasterwhenreadingdatafrombinarylo bitsCN.com
Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
mysql> show slave status/G********************
In the MYSQL stored procedure, the table name uses the variable bitsCN.com.
Use variables for table names in MYSQL stored procedures
# This stored procedure defines several input parameters with the prefix para _
# This part of the stored
Mysql column-to-row and year-to-year group bitsCN.com
Mysql column-to-row and month-to-month grouping
Java code
SELECT count (DISTINCT (. rect_id) zcount,. job_dept, DATE_FORMAT (submit_date, '% Y-% M') zsubmit_date FROM table name a WHERE. statu
Kill all client threads in MySQL, bitsCN.com
Kill all client threads in MySQL
Write a script and run it to kill all the sleep client threads in MySQL.
Vim killsleep. sh # It is used to kill processlist of mysql sleep #! /Bin/shwhile: do n = '
Mysqlinnodb foreign key Mysql foreign key
BitsCN.com
Mysql innodb foreign key
Meanings of foreign key constraints on subtables:
If no candidate key is found in the parent table, insert/update is not allowed in the child table.
Description
12 groups of nodesMySQLDB, two Master-masters in each group, batch clear expired binlogs to release disk space bitsCN.com
12 groups of nodes MySQL databases, two Master-Master instances in each group, batch clear expired binlogs to release disk
MYSQL uses the select statement to query the record method bitsCN.com that contains strings separated by commas.
How to use select to query records that contain strings separated by commas in a field in MYSQL
First, create a string separated by
Mysql obtains the first letter of each Chinese character field bitsCN.com.
Obtain the first letter of each Chinese character field in mysql
Set global log_bin_trust_function_creators = 1;
SET FOREIGN_KEY_CHECKS = 0;
------------------------------
-
MysqlgroupbytopN problem bitsCN.com
Mysql group by top N
In daily work, it is often necessary to query the first few groups. in oracle, row_num can be used to support queries. mysql currently does not support row_num. how can this requirement be
(3): database integrity and constraints bitsCN.com
I. database integrity
1. definition
To ensure the correctness and compatibility of data in the database, relational integrity is a constraint or rule proposed for the relational model. Integrity
Mysql subquery command
1. the EXISTS and not exists operators only test whether a subquery returns data rows. If yes, EXISTS will be true. not exists will be false.
For example:
[SQL] select exitsts (select * from absence); select not
Query of IN and FIND_IN_SET IN mysql bitsCN.com
Query of IN and FIND_IN_SET IN mysql
I thought mysql could perform such a query.
select id, list, name from table where 'daodao' IN (list); (1)
Note: 1. table contains three fields: int, list:
One of listener two bitsCN.com
Listener 2
I. Registration
Registration is to register the database as a service to the listener. The client does not need to know the database name and instance name.
If you know the service name provided by the
Source code parsing of InnodbReadIO-related parameters bitsCN.com
I have recently read the source code of Innodb IO. I have been wondering before reading this article. There are two indicators in show global status: innodb_data_reads and
Comment of MySQL database bitsCN.com
Comment on the MySQL database
MySQL comment --
When I wrote the MySQL function today, I added comments to the content and found that the compilation error occurred;
Find the manual to find out, "--"
View and set bitsCN.com for [MySQL] variables (parameters)
[MySQL] viewing and setting variables (parameters)
Similar to Oracle parameter files, MySQL option files (such as my. cnf) is used to configure the MySQL server, but it is not the same as
MySQL database lock introduction bitsCN.com
MySQL database lock introduction
1. basic concepts of locks
When concurrent transactions access a resource at the same time, data inconsistency may occur. Therefore, a mechanism is required to
Mysql returns multiple values using the stored procedure bitsCN.com
Mysql returns multiple values using stored procedures
You can use the OUT and INOUT parameter types to allow the stored procedure to return multiple result values. the stored
Several reference addresses for MySQLsharding: bitsCN.com
Http://stackoverflow.com/questions/5541421/mysql-sharding-approaches
Http://www.oschina.net/search? Scope = blog & q =
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