First, the environment description:
Copy Code code as follows:
[ROOT@BEANVM ~]# Cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 6.2 (Santiago)
[ROOT@BEANVM ~]# Uname-a
Linux BEANVM 2.6.32-220.el6.i686 #1 SMP Wed
Timestamp data type in MySQL is a very special data type, he can automatically update the time when you update the record without using the program update timestamp
Usually there is a field in the table that creates date, and other databases have
In the database, the most significant performance impact includes the database lock policy, caching policy, indexing policy, storage policy, and execution plan optimization strategy.
The indexing policy determines the efficiency of the database to
This two-day project has a problem, limit use after the error.
The demand is like this, I have 3 tables, infor information table, mconfig material configuration table, maaply material request form, request to read out which person in the
1, view log situation
Copy Code code as follows:
Mysql> show global variables like '%log% ';
+---------------------------------+---------------------------------+
| variable_name | Value |
+---------------------------------+------------
I used to paging in MySQL used to limit 100000,20 such a way, I believe you are, but to improve efficiency, so that the paging code more efficient, faster, then how do we do?
Part One: Look at the basics of pagination:
Copy Code code as
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be without spaces, others are the same)
Disconnect: Exit (Enter)
Create authorization: Grant SELECT on database. * To User name @ login host identified by \
Installation Environment: CentOS 5.4MySQL version: MySQL 5.1.xx with rpm direct installationRequired Software: Xtrabackup 1.2.22 with RPM direct installation1. master:/etc/my.cnf
Copy Code code as follows:
[Mysqld]
Server-id = 1
MySQL log system online for some time, the front end in the slowly cut the site to write, proactive DIY set of MySQL monitoring tools.
Divided into slave status, Sync,objec infot,userprivileges,job status, Slowlog.
This time, Slow_log.
MySQL 1.5
1, the slow log status;
Mysql> Show variables like '%slow% ';+---------------------+------------------------------------------+| variable_name | Value |+---------------------+------------------------------------------+| log_slow_queries | On ||
Method 1: Using the Set password command
Copy Code code as follows:
Mysql-u Root
mysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass ');
Method 2: With Mysqladmin
Copy Code code as follows:
Let's share the following, the way to close the MySQL log
LNMP a key package installed MySQL default open MySQL log, if the site on the database read and write more frequently may generate a large number of logs, and occupy disk space, but also may
Features of several common storage engines
Here we focus on several common storage engines and compare the differences between each storage engine and how they are recommended for use.
features
Myisam
BDB
Memory
InnoDB
Microsoft's Visual Studio does not have its own driver to connect to MySQL, to download a mysql-connector-net-6.4.3 driver on the Internet, and then install it to use.
The following is a class that I encapsulate to connect the database, call
Create a MySQL user [root@xuhost opt]# useradd-g mysql mysql3307-s/bin/nologin-d/usr/local/mysql3307Create a data directory [Root@xuhost opt]# mkdir/mysqldata/dirdata/mysql3307 [root@xuhost opt]# chown Mysql.mysql-r-/mysqldata/dirdata/ mysql3307
Things have been busy for a while, and recently a department change is going to be done for new projects. It's exciting to learn a lot of new knowledge. Today after work back to check the VPS status, found that the VPS space only 1G more! The first
In MySQL, a transaction is a series of steps for a logical unit of work. Transactions are used to ensure the security of data operations.
Characteristics of the transaction:
1.Atomicity (Atomic)2.Consistency (stability, consistency)3.Isolation
A problem has been encountered in the work: To update a data table.
This table was created by myself, with 7 fields, IDs, name, package, etc.
When I created it, because I had the name, package information in two text files,
So I used the Insert
In the Apache, PHP, MySQL architecture, MySQL has the greatest impact on performance and the key core. For the discuz! Forum program is also the case, MySQL settings are reasonable optimization, directly affect the speed and load of the forum! At
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