High-Performance MySql evolution (III): ID (identifier) selection bitsCN.com
High-Performance MySql evolution (III): ID (identifier) selection
When designing the database table structure, each table structure usually has a field as the ID, because
Mysql white paper maintenance guide bitsCN.com
Mysql white paper maintenance guide
Test the recovery tools and procedures, including restoring data from the backup.
Follow the minimum permission principle
Keep the system clean and tidy
Use
Mysql timestamp query bitsCN.com
Mysql timestamp query
In mysql, all fields of the timestamp type must be converted as query conditions, as follows:
DATE_FORMAT ('timestamp', '% Y-% m-% d % H: % I: % S')> = '2017-03-05 00:00:00'
Error1044 (42000): accessdeniedforuser bitsCN.com
Error 1044 (42000): access denied for user ''@ 'L... solved
After logging on to mysql with an empty password in the past few days, modify the default mysql password. the following ERROR occurs when
Determine whether the database table exists and modify the table name bitsCN.com
Determine whether the database table exists and modify the table name
1. determine whether a database table exists:
Obtain the database connection conn, call
Mysql statement: batch update of different values of multiple records [to] bitsCN. commysql statement: batch update of different values of multiple records
The mysql update statement is simple. to update a field of a piece of data, write as
MySQL timestamp conversion bitsCN.com
MySQL timestamp conversion
I have checked it before. I found that I have forgotten it when I use it today.
Somewhere is a recommended method.
1. Convert time to timestamp
Select unix_timestamp ('2
The process of building a slave database based on the existing MySQL master database bitsCN.com
Build a slave database based on the existing MySQL master database
[Note ]:
Host 192.168.250.20
Backup machine 192.168.250.40
Master-slave
The mysql trigger operates bitsCN.com on multiple tables in the database.
Mysql triggers data operations in the same database with multiple tables
Abstract: In order not to change the original code, you can synchronize data between the client and
Mysql multi-table Association bitsCN.com
Mysql multi-table Association
Association of multiple tables is often used in databases. Mysql associations mainly include inner join, left join, and right join. The following describes and provides
Recovering a slave database using the Xtrabackup backup set bitsCN.com
Restore a slave database using the Xtrabackup backup set
1 time tar-xvf Open..tarx.gz
Real 35m22. 502 s
User 10m16. 499 s
Sys 1m28. 578 s
You have new mail
MySQL revokes permissions and deletes user bitsCN.com
Cancel permissions and delete users in MySQL
As the database administrator, since users can be created and authorized, users can also be revoked and deleted. To cancel a user's permissions, you
Count the number of SQL statements with a field equal to different values (share) bitsCN.com
This article introduces how to use an SQL statement to count the number of fields with different values. this method is unique. For more information, see.
Mysql custom Function bitsCN.com
Mysql custom Function
1. we recommend that you use navicat (a tool dedicated to mysql management)
2. create a function --> function-> xia --> next --> enter the parameters of the routine -->
Input parameter
Ubuntu 13.04mysqlproxy installation and configuration
BitsCN.com
Install and configure the MySQL Proxy in Ubuntu 13.04
Installation environment Ubuntu 13.04
$ Sudo apt-get install mysql-proxy
ENABLED to true
$ Sudo
Mysql1130error solves bitsCN.com
Mysql 1130 error solution
Error
Solution
I. Error
1130-Host 'ipaddd' is not allowed to connect to this MySQL server
II. Solution
The cause of the change is that the access is denied due to no
Mysql instance --- Use @ variable bitsCN.com in SQL statements This article introduces how to use @ variable in mysql statements to learn how to use this special variable. For more information, see. Requirements:
Calculate the number of days from
MySQL index type bitsCN.com
MySQL index type
1. common index
The only task of a common INDEX (INDEX defined by the KEY or INDEX keyword) is to speed up data access. Therefore, you should create an index only for the data columns that most
Add, delete, modify, and query bitsCN.com of table fields in Mysql
Add, delete, modify, and query table fields in Mysql
Add, modify (modify type), delete, and sort table fields in mysql
1. create a new table with the following fields: student
Mysql month/year grouping statement bitsCN.com
Mysql grouping statement
Java code
SELECT count (DISTINCT (a. rect_id) zcount, a. job_dept,
DATE_FORMAT (submit_date, '% Y-% M') zsubmit_date
FROM
Table name
WHERE
A. statu = 3
AND a. rstatu = 2
AND a.
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