MySQL view all available character sets
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 6190Server version: 5.6.24-log MySQL Community Server (GPL)Copyright (c) 2000, 2015, Oracle and/or its
Mysql has been running slowly in the production environment recently, and some SQL statements are also slow, first, check whether showvariableslike 'slow _ query_log % 'is enabled for the slow query log. the showvariableslike 'long _ query_time %'
Upload-upgrade As I prepare to convert some MySQL tables with FULLTEXT indexes from MyISAM to InnoDB I want to verify that running a standard production query set against the tables will return the same results with InnoDB that it did with MyISAM.
Mysqldate_subdate_add function usage bitsCN.com
Mysql date_sub date_add function usage
Mysqldate_subdate_add
Definition and usage
The DATE_SUB () function minus the specified time interval from date.
Syntax
DATE_SUB (date, INTERVAL expr
Check and fix the mysql database table bitsCN.com
Check and fix mysql database tables
01
#! /Bin/sh
02
# Code by scpman
03
# Function: check and fix mysql database tables
04
# Add the script to the timer. when the script is executed, it will read
[Slow query optimization] pay attention to who is the driving table in the table query. you don't know who joins the table. if you want to know who is better, let mysql determine bitsCN.com on its own.
Preface:
It is not required that everyone
Clear and disable Binarylogs bitsCN.com of MySQL
Clear and disable Binary logs of MySQL
Recently, MySQL has suddenly flown in. Binary Log eats more than 800 MiB of hard disk space, which interferes with the normal operation of the system. There
6. basic query operations bitsCN.com
In database operations, a developer or user needs to retrieve information in a data table to obtain data records. In SQL statements, the SELECT statement is used to retrieve data records. The SELECT statement can
Statistics on the number of consecutive occurrences of the same value in a column in MySql
MySql statistics on the number of consecutive occurrences of the same value in a column
The original table is as follows: www.bitsCN.com
100
101
102
1
Mysql scheduled script (event), similar to oracle job bitsCN.com
Mysql scheduled script (event), similar to oracle job
I have two tables: tb_push_data and tb_push_data_log.
Now, you need to set tb_push_data
Back up data to the table
MySQLserverhasgoneaway problem encountered MySQL server has gone away problem a PHP project of the development MM project (PHP + MySQL) encountered the MySQL server has gone away error today, the MySQL server is not under pressure.
I forgot the usage of bitsCN.com for groupby and orderby in a simple mysql Query. the content is roughly as follows. Two tables with the following content: SQL code + -------- + ------- + ------ + | z_code | mgr | pigs | + -------- + ------- + ------
If mysql does not have the locktables permission, the following error is reported: AccessdeniedforuserwhenusingLOCKTABLES bitsCN.com: an error is returned when a common user backs up a mysql database.
Mysql reports Access denied for user 'dbuser'
One machine, multiple mysqld services bitsCN.com
Have you ever installed a lot of mysqld on one machine? If so, how do we do this? Is it true that I have compiled many mysql databases in different directories and then started them one by one? If so,
Backup Script bitsCN.com of the master database when mysql4.0 is used as the master database
Mysql4.0 is the backup script for the master database when the master database is started. mysql4.0 is an old version, but some enterprises that are used
Optimize SQL queries: How to Write High-performance SQL statements 1. what is the execution plan first? The execution plan is a query solution made by the database based on the statistics of SQL statements and related tables. this solution is
Redis architecture ~ Redis provides five data structures: bitsCN.com
Distributed Cache, message queue, replace Session (SessionToo unstable, haha) = Redis
The rise of Redis is no accident. it does have its own new things in it. it is not
Method and code for deleting duplicate records in MYSQL
In practical applications, there may be some repeated records that need to delete some fields. I will write down what I can think of now, and hope the experts can add it.
1,The specific
Benefits of Using parameters instead of splicing SQL statements bitsCN.com
In actual development, you often need to access the database. The most common development method is similar:
String SQL = "select * from table1 where name = '" + name +
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