Because many links that reference documents outside the site are invalid, a large number of dead links are generated, which is unfriendly to search engines and is not conducive to website optimization, therefore, the out-of-site link filtering
I recently encountered a storage requirement for a file system similar to my business. I have discussed how to store a tree in mysql and shared it to see if there are any better solutions.
I. Current situation
First, assume that there is such a
The connection to the mySQL database fails frequently. Why? A year ago, I developed a website that rented a virtual space of PHP + mySQL in linux and has been working normally before.
Over the past six months, database connection failures have
I. Environment
Publishing Server
O s: Windows servier 2003 64-bit
Soft: Microsoft SqlServer 2008 R2
I P: 192.168.3.70
HOST-NAME: wxl-PC
Distributor
O s: Windows servier 2003 64-bit
Soft: Microsoft SqlServer 2008 R2
I P: 192.168.23.130
HOST-NAME:
Therefore, such errors often occur.Copy codeThe Code is as follows:Select * from [IND] where INDID> 10UnionSelect * from [IND] where INDID So far, no questions have been asked
Later, someone may use similar queries.Copy codeThe Code is as
When using the Mysql database, the most troublesome problem is that the connection error Exception may occur from time to time. Similar exceptions are as follows (Hibernate is used as an example ):
org.hibernate.util.JDBCExceptionReporter - SQL
Google today announced that it has added native MySQL connection support for its cloud SQL service. Therefore, you can use MySQL Wire Protocol to fully manage MySQL services on Google cloud platform.
This Protocol (MySQL Wire Protocol) allows
5. sort and retrieve data
5.1 sort data
ORDER
SELECT prod_name FROM products ORDER BYprod_name; // sort search
SELECT prod_id, prod_price, prod_name
FROM products ORDER BYprod_price, prod_name; // sort by multiple columns
5.2 specify the sorting
Explain can analyze the execution of the select statement, that is, the "Execution Plan" of MySQL.
Type Column
MySQL finds the required rows in the table. Including (from left to right, from worst to best): | All | index | range | ref | eq_ref |
Different from row-level or page-level locking options:· Version (for example, the technology used to insert data in MySQL in parallel), which can be a write operation with many read operations at the same time. This indicates that the database or
MariaDB is a MySQL branch version that uses the Maria storage engine.Michael WideniusA free and open source database server developed by the company.
Downloading MariaDB 5.1.50: http://downloads.askmonty.org/
MariaDB 5.1.50 improvement records
Status Series
Mysql provides a series of commands to obtain the running status of the database. The most common commands are show status, show innodb status, show processlist, and show mutex status. Through these commands, we can learn the database
Anyone familiar with MySQL may know that MySQL has an "insert ignore" syntax to ignore existing records. PostgreSQL does not currently provide such syntax, but it can be replaced by other methods.T_girl = # \ d insert_ignore Table "ytt.
I. minimal installation of centos II. after the virtual machine is installed, iptables is automatically enabled and chkconfig iptables is permanently disabled. set static IP address for later shell connection, mysql master server 192.168.1.41, from
Mysql database operations include data query, data storage, data update, and data deletion. These are the most basic and commonly used statements in the database. I will introduce them one by one, hope to bring me good luck.
SELECT query statement
The mysql trigger cannot directly use update to update data. This is not a mysql bug, but the official saying that using update may lead to an endless loop, we recommend that you directly use the new value variable.
In mysql, the insert and update
Let's take a look at the efficiency of php date () and SQL FROM_UNIXTIME (). In the end, the performance is better. Let's look at the instance together.
In php, there are two methods to convert the int type Timestamp to date and time. One is to use
Next, let's take a look at the mysql database show processlist result analysis. I hope this article will help you.
Mysql> show processlist;
+ -- + ----- + ------- +
| Id | User | Host | db | Command | Time | State | Info
+ -- + ----- + ------- +
| 20
Full-text indexing is a mysql database index. Full-text indexing can quickly implement full-text search. Its type is fulltext, next, let's take a look at how to create full-text indexes in MySQL and how to configure full-text indexes in mysql. I
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