If the MySQLKillsleep process is idle, study it slowly...
--------------------------------------------------------
Mysql> SELECT concat ('Kill ', id,'; ') FROM information_schema.processlist WHERE user = 'root' INTO outfile'/tmp/a.txt'; Query OK,
Solve the error code of MySql1036 in Linux (1036: Table
During the past two days, the website was migrated in the form of directly packing mysql databases and web files, upload the website database in the mysql data directory to the directory
Summary of how MySQL deletes duplicate data from a database
At the beginning, according to my thoughts, this is very simple.
delete from zqzrdp where tel in (select min(dpxx_id) from zqzrdp group by tel having count(tel)>1);
Run the command. an
10. mysql transaction introduction
1. myisam and memory support table-level locking BDB page-level locking Innodb row-level locking 2. table lock (not a table) lock table read // read-only table lock, that is, after the lock is executed, the
Download] mysqlhotcopy hot backup tool experience and summary
Today, I am free to try MYSQLHOTCOPY, a tool for fast hot backup of the MYISAM engine.(This article is for a single server and will be added to multiple server operations in the
Automatic backup of MySQL database and restoration after Database destruction (2) test whether automatic backup works properly (backup recovery method)
Here, we will introduce the recovery method after the problem occurs through the actual
MySQLinsertsduplicaterecordsdespiteuniqueindex | LeaseWebLabs Okay, so I thought I knew quite a bit about databases and so I added a unique index. For those who do not know:
A unique index creates a constraint such that all values in the index
VII. mysql index selection
1. A single myisam, bdb, innodb, and memory table supports at least 16 indexes. create index id_index on emp (id) creates an index for the id field id_index for the emp table. drop index id_index on emp delete the
SQL injection vulnerability in an application of Phoenix net
An api of Phoenix News app is not strictly filtered and has an injection vulnerability.
Injection point: http://api.iapps.ifeng.com/news/upgrade.json? Gv = 4.2.0 & proid = ifengnews & OS =
The following describes how to scale up a mysql database to cope with high-traffic websites:
1. read/write splitting:When the database access volume is not very large, we can add servers as appropriate, the database master-slave replication
PerconaServer5.5.38-35.2 isnowavailable Percona is gglad to announce the release
Percona Server5.5.38-35.2 on July 2, 2014
(Downloads are available here and from the Percona Software Repositories). Based on MySQL 5.5.38, including all the bug
Mysql Performance Optimization
1. optimize table
2. analyze table
3. try to declare the column as NOT NULL
4. Mysql only uses the prefix index to avoid creating an index on an existing index prefix.For example, do not create an index (a) on index
About MySQLCluster cluster NoOfReplicas parameter problem Mysql Cluster
From: http://www.itpub.net/thread-1845295-1-1.html
On the official website, the value of NoOfReplicas indicates the number of copies of data, for example, NoOfReplicas = 2.
Problems with mysql5.38 installation: remove 5.1.73 and install 5.5.38.
System startup/shutdown
Net start mysql;
Net stop mysql;
Delete a service: two methods
SC delete mysql
Mysqld-remove
Install
Mysqld -- install mysql -- defaults-file =
Book Note _ 3
PS: the amount of information this time is a bit large.
Aggregate different values
Select avg (DISTINCT prod_price) AS avg_price
FROM products
WHERE vend_id = 1003
# The same value will not be calculated
Aggregate Functions
Select
I checked some information when installing the Linux system for the first time, and some netizens taught me how to install Windows 7. here is a summary to share with you (USB flash drive installation ).
In fact, we usually have a boot sequence when
NOTE _ 2 wildcards in MySQL: (trailing spaces may interfere with wildcard matching)
% Match any character _ match any single character
Regular expression: REGEXP
The usage is to replace the LIKE position, followed by a regular expression.
Case
In Windows and Linux, MySQL restores database code in Linux:
1. create an empty database cddl
Mysql> create database cddl;
Query OK, 1 row affected (0.00 sec)
2. restore the database
[Root @ chicago mysqlsoftware] # cd/etc/rc. d/init.
Thread_cache and table_cache for MySQL Performance Optimization configuration parameters
I. THREAD_CACHE
To improve the performance of the connection process created by client requests, MySQL provides a connection pool, namely the Thread_Cache pool,
MySQL Performance Optimization-max_connections configuration parameters analysis MySQL max_connections parameters are used to set the maximum number of connections (users. Each user connected to MySQL is counted as a connection. the default value 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service