MySQL queries all records of a field that are not repeated bitsCN.com. assume that there are now N records that indicate
Id author title
1 aaa AAA
2 bbb BBB
3 ccc
4 ddd
5 eee AAA
Now I want to query all records with no duplicate titles from
MYSQL code regularly backs up Mysql database bitsCN.com. I believe that many webmasters or independent Blog bloggers have the need to back up databases. Of course, there are many plug-ins that can help you complete this task in a rich Blog system
MysqlLoadDataInFile usage bitsCN.com first creates a table
Use Test;
Create Table TableTest (
'Id' mediumint (8) default '0 ',
'Name' varchar (100) default''
) TYPE = MyISAM;
Import data to a data table
Load Data InFile 'C:/Data.txt 'Into
MYSQL uses batch processing commands to automatically delete and recreate databases to compress ibdata1 file capacity bitsCN.com
MYSQL uses batch processing commands to automatically delete and recreate databases to compress ibdata1 file capacity
I.
[MySQLbinlog] How does mysql thoroughly parse the binlog bitsCN.com in the Mixed log format?
Mysql binlog3 formats: row, mixed, and statement. parsing
Mysqlbinlog -- base64-output = DECODE-ROWS-v mysql-bin.000144 | more
-- Base64-output =
Mysql creates a single and joint index bitsCN.com
Create table t1 (id int primary key, username varchar (20), password varchar (20 ));
Syntax for creating a single index: create index name on table name (field name)
The index name is generally:
MySQL high-availability MMM solution installation and deployment sharing bitsCN.com
1 install mysql
See http://www.bitsCN.com/article/47094.htm
2. Basic configuration of master 1
3. Create usersGrant replication client on *. * TO 'Mmm _ monitor' @ '%
MySQL must know 1-4 bitsCN.com
1. understand the database
Database: a container that saves organized data
Table: a structured list of a specific type of data
Schema: information about the layout and features of databases and tables
Column: a
Last_Errno: 1062, Last_Error, it will take time to check the problem.
1. Slave Database error message:
Mysql> show slave status/G* *************************** 1. row ***************************Slave_IO_State: Waiting for master to send eventMaster_
Introduction to the development of a temporary MySQL table and a temporary dstatmysql table monitoring plug-in bitsCN.com
Temporary table features
Related parameters
Mysql> show global variables like '% table_size '; + rows + ---------- + | Variable_
Configure the installation-free mysql5.6.16 win7 in the win764-bit system
BitsCN.com
Since the machine has orcale and does not want to install mysql again, there will be a free installation, and it will take a little effort to complete the
Mysql multiple subqueries multiple LEFTJOIN views create bitsCN.com
CREATE VIEW `v_noprovide` AS SELECT*FROMtb_sectionWHEREprovide = '0'CREATE VIEW `v_thismonth` AS SELECTts.userId AS id,CONCAT('thismonth:',SUM(ts.amount),'yuan') AS
How to use the IFNULL, IF, CASE... WHEN... THEN... functions of mysql bitsCN.com
IFNULL (expr1, expr2)
If expr1 is not null, IFNULL () returns expr1; otherwise, it returns expr2. IFNULL () returns a number or string value, depending on the context
Mysql database group (GROUPBY) query instance bitsCN.com
1. use Loose index scanning to implement GROUP
What is loose index scan to implement group? In fact, when MySQL uses index scan to implement group by, it does not need to scan all the index
Perfect solution for mysql to display Chinese characters
When you use a client or other methods to connect to data and type Chinese data, garbled characters are displayed in the client. of course, this is a problem with character set settings. I
Mysql memory table creation method bitsCN.com
How to create a memory table?Creating a MEMORY table is very simple. you only need to specify ENGINE = MEMORY:Create table 'tablename' ('columnname' varchar (256) not nul) ENGINE = memory default charset
Verification of different mysql versions and storage engine selection bitsCN.com
Mysql has many versions and storage engines. to select the most suitable system for business use, some verification is required. This article describes the mysql
Differences between MySQL storage engine InnoDB and MyISAM bitsCN.com
Basic differences:The MyISAM type does not support advanced processing such as transaction processing, whereas the InnoDB type does. MyISAM tables emphasize performance, and the
Install MySQL-workbench Ubuntu in Ubuntu
BitsCN.com
System: Ubuntu12.04LTS
MySQL version: 5.5.35-0ubuntu0. 12.04.2 (Ubuntu)
Step 1: Download MySQLWorkbench
:
Http://dev.mysql.com/downloads/tools/workbench/
After selecting the system version
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