Show status;Flush status;
View the current connection count show status like 'thread _ % ';Thread_cached: Number of cached threadsThread_running: Number of activated threadsThread_connected: Number of threads currently connectedThread_created: Total
When the website was just released, there were not many articles, and the homepage basically listed all the content. Recently there were many articles, so you need to display them by page.
The website uses the MySQL database. The code for
Create function Time_Span_of_minutes (
Start_day DATETIME,
End_day DATETIME)
RETURNS FLOAT
BEGIN
-- Returns the interval between two periods calculated by minute. It is calculated by the method of approaching each day. The value is calculated by 8
I have encountered some trouble today. Although it has not been solved, I am reminding you.
Today, the username created with Grant is "DanielW", and the logon password is incorrect. Create a new one. The username is "Daniel @ localhost", that is,
Disable/enable Red hat Firewall
/* Disable the firewall */
Service iptables stop
/* Enable Firewall */
Service iptables start
/* Disable the firewall by default */
Chkconfig iptables off
Authorization method.
For example, if you want
MYSQL5.x works in 'strict mode' by default in windows. When the table creation statement contains the following:Description text default 'www .naozao.com 'statement, it will give you an error or warning informationBLOB/TEXT column 'description'
-- Sequence management tableDrop table if exists sequence;Create table sequence (Name VARCHAR (50) not null,Current_value int not null,Increment int not null default 1,Primary key (name)) ENGINE = InnoDB; -- Function for retrieving the current
After mysql is started, log on to mysql as the root user$ Mysql-u root-p > Show variables like 'character % '; # display the code+ -------------------------- + ---------------------------- +| Variable_name | Value |+ -------------------------- + ---
There are many unequal situations in our project. This article briefly analyzes how to optimize it. The table sharding logic here is based on the number of user_name groups in the t_group table.In this case, the index on the user_name field is a bad
The error message is as follows:$ Mysql-urootERROR 1040 (00000): Too connector connections I used the mysql5 server as win2000 to solve the problem. I found the mysql installation directory, such as C: windowsmysql, and found the my. ini
1. Environment
OS: Win 2003 Server (X86)DB: MySQL 5.1.30-community-log
2. Problem
The number of handles occupied by the MySQL Server is too large, and the consumption process of the handle is faster than the release speed. Some other applications
Multi-table join query. If the relationship between tables is clear and the structure is simple, creating a view SQL code CREATE VIEW view_name AS SELECT t1.xxx, t2.xxx, t3.xxx FROM (table1 t1 inner join table2 t2 ON t1.fid = t2.fid) inner join
The remote connection to mysql fails. The error "1130-host... is not allowed to connect to this MySql server" is displayed.Authorization method. For example, if you want myuser to use mypassword to connect to the mysql server from any host. Grant
When we use a query statement, we often need to return the first few or a few rows of data in the middle. What should we do at this time? Don't worry, mysql already provides us with such a function.SELECT * FROM table LIMIT [offset,] rows | the rows
Shell code ###################################### ############## Begin configuration for mysql Performance Improvement #################### ################################# skip-name-resolve # forbidden mySQL performs DNS resolution on external
Replace into is very similar to insert into. The only difference is that when replace into is used, the system first checks whether there is a record that is the same as the statement to replace into Based on the table's primary key, if yes, delete
MySQL: ERROR13 (HY000): Can't get stat of problem, but replace load data infile with load data local infile OK! Cause Analysis: From Mysql Chinese manual: For security reasons, when reading text files on the server, the www.2cto.com file must be in
When designing a database, we often encounter fields that indicate "no". Wang Wei, a network fisherman, encountered the following situations when designing a shop table:The store has the following attributes: first, whether it has the Consumer
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