Introduction to a concept
The index Condition pushdown (ICP) is a new feature in the MySQL 5.6 release and is an optimized way to use index filtering data at the storage engine level.
A when the ICP is turned off, index is just one way of
When the database is in use, the default binlog is kept in one file (about 1.1G), resulting in a very large file, so you may need to delete some binlog log files when necessary:
To delete a log file:
Mode one:
[Root@master-mysql data]# grep-e
A remote connection to the MySQL database prompts the following message: "MySQL connect error–1130:host ' 202.43.**.** ' is not allowed to connect to this MySQL server"
Originally in the Create MySQL account is, limited Connection account remote
One, slow query log configuration
Turn on the slow query log to configure the sample:
/etc/mysql/my.cnf[Mysqld]Log-slow-queries
Add the above configuration entry in the MY.CNF configuration file and restart the MySQL service, when the MySQL slow
MySQL server connection number is not to achieve the maximum of 100% for good, or to specific problems specific analysis, the following on the MySQL server the maximum number of connections to the reasonable set up a detailed analysis for your
Three commonly used statements to insert data in MySQL:
Insert into represents the insertion of data, the database checks the primary key, if there is a repeat error;Replace into represents the insertion of replacement data, a PrimaryKey in the
MySQL SQL character join function 1, Concat () function 1.1 MySQL's Concat function can connect one or more strings, such as & nbsp; mysql> Select concat (' 10 '); +--------------+ | Concat (' 10 ') | +--------
MySQL uses binary logs to recover data two ways
If the MySQL server has binary logs enabled, you can use the MySQL tutorial Binlog tool to recover data starting at a specified point in time (for example, from your last backup) until now or another
The code is as follows
Copy Code
#!/bin/sh# by Jet Ma from www.javatang.com# version v0.2 build20121011-1516# Install Nginx, MySQL and PHP# CentOS 5.5 64bit#-----------Configuration Information-----------# MySQL installation
This function library is available to access the MySQL database. For details about MySQL, and download the MySQL database, please go to this URL http://www.mysql.com. And on the network also has many to provide the processing MySQL user interface
It is important to back up your database if your database tables are missing or corrupted. If a system crash occurs, you will want to be able to recover as few data from your table as possible to the state at which the crash occurred. Sometimes it
Linux has a significant feature that, under normal circumstances, you can analyze the log to see what is happening in your system or what is happening. Indeed, system logs are the first-hand resources that system administrators need most to solve
The current Windows system uses IIS to build a php+mysql environment, due to manual configuration will be a lot of unexpected errors and security issues, here is recommended by the Guardian God · PHP suite, can be very convenient to build a good php+
How to download:
I'll go to MySQL first. Download the latest version of mysql-Link: https://www.mysql.com/downloads/
Enter this interface to download:
Downloads–>mysql Community Edition (GPL) (This is free edition, of course, the rich can be
Currently two client-side extension Library connection timeouts can be set to operate with options such as mysqli:
Copy Code code as follows:
Creating objects
$mysqli = Mysqli_init ();
Set timeout options
$mysqli->options
Install Percona Toolkit repo to support the installation of binary packages directly with Yum
Yum Install-y https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-3.noarch.rpmYum Install-y Percona-toolkit
Change
introduction of Data EngineInMySQLIn 5.1, MySQL AB introduces a new plug-in storage engine architecture that allows the storage engine to be loaded into the new MySQL server being shipped.Use the MySQL plug-in storage engine architecture to
Recently saw a number of online tests, the feeling is not very accurate, today personally tested some. It is concluded that the testing process on personal computers may not be comprehensive enough for reference only.
Test process:Prepare a test
A. Tomcat configuration data Source:
Prerequisite: You need to place the MySQL database driver jar package into the Lib directory under the common folder in the Tomcat installation directory
1. Method One: Under the Webroot to build a folder
Shopping cart implementation is a necessary function during the development of e-commerce websites. This article introduces the implementation of php shopping cart code.Principle: cookie stores the shopping cart ID and data stores the shopping cart
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