Feel the code is a bit messy, annotation code are written more casual, as if there is no uniform norms, different files in the code style also have differences, may be MySQL after a lot of cattle of the hands of the people, set the long bar. Also
DescriptionAccording to the investigation, the above server thread cache Thread_cache_size is not set, or is set too small, this value indicates that the number of stored threads in the cache can be recycled, and if there is room in the cache when
1. Optimize your MySQL query cache
Queries on the MySQL server enable high speed query caching. Keeping the database engine in the background quietly is one of the most effective ways to improve performance. When the same query is executed
Note that it is meaningless to use a Replace statement unless the table has a primary key or a unique index. The statement is the same as the insert, because no indexes are used to determine whether the new row replicates other
Workaround One:To other MySQL-installed servers (if you want to know the MySQL root password on the server), open the "MySQL installation directory/var/mysql", the user.frm, user. MyD, user. Myi three files are copied to the "MySQL installation
MYSQL This database is definitely suitable for the DBA class to play, and generally do a little 10,000 news of small system how to write can, with the XX framework can achieve rapid development. But the data volume to 100,000, million to tens of
Windows1, MySQL is some environment variables can be set,
Can enter: show variables; you can view the current environment variable settings;
2, some of these variables are related to the setting of the character,
Can enter: Show variables
A simple tutorial on MySQL using the Linux system above (i)
Field parameters are "(Field name 1 data type 1, field name 2 data type 2, ...). ) "In the form of construction.
About MySQL commonly used data types, one is more commonly used several,
1: Error log mass error
150602 14:40:02 [Warning] Unsafe statement written to the binary log using statement format since Binlog_format = Statemen T. INSERT ... SELECT ... On DUPLICATE KEY UPDATE are unsafe because the order of which rows are
Myisam_revocer controls the way Myisam find and fix errors.
Automatic repair of MySQL MyISAM table
Common MySQL children's shoes know that this myisam type of table is very easy to damage, most people may be using the MYISAMCHK command to manually
Click on the "SQL" tab at the top to enter the SQL command input interface. Enter the following command:
Copy Code code as follows:
Update Mysql.user set Password=password (' jb51$123456 ') where user= ' root ';
Then click on the lower
MySQL added the function of the stored procedure after 5.1, the stored procedure runs inside MySQL, the statements have been compiled, faster than SQL. Stored procedures and MySQL are equivalent to Shell and Linux systems. If you're a programmer,
To learn MySQLunder Linux, the first hurdle is how to install and configure MySQL under Linux. We have the patience to do this once and for all.
System version: ubuntu14.04
MySQL version: mysql-server-5.5
mysql-client-5.5
First check if
Max_connect_errors is a security-related counter value in MySQL that is responsible for blocking excessive attempts to fail the client to prevent brute force cracking of the password. the value of max_connect_errors is not much related to
1. Create a table:
Copy Code code as follows:
drop table if exists photo;
CREATE TABLE Photo (
ID INT not NULL auto_increment PRIMARY KEY,
Name VARCHAR (m) COMMENT ' names ',
Photo blob COMMENT ' photo '
)
Engine=innodb
This is Bbs.sql
CREATE TABLE Bbs_area (
ID Int (a) unsigned DEFAULT ' 0 ' not NULL auto_increment,
Master varchar not NULL,
Banner varchar () not NULL,
Body text is not NULL,
Email varchar (50),
Login varchar (20),
passwd varchar (20),
PRIMARY KEY (
MySQL seems to start from 5.0 before the introduction of stored procedures, anyway before the application has never touched, but now because the main internal system, so many applications are used to the stored procedures, of course, the front
MySQL set up a large number of character sets, from the client to connect to the result set, from the server to the table to the column, can set the character set, flexible is very powerful, but it is very easy to problem, if not understand its
This paper analyzes the effect of string index on update in MySQL. Share to everyone for your reference, specific as follows:
When you add a prefix index to a field that has a type of varchar, the conditional query time is substantially reduced
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