How to get better full-text search results in MySQL
Author: Techrepublic.com.com
2006-04-03 11:14:53
Many Internet applications provide full-text search capabilities, and users can use a word or phrase as a query item to locate matching records.
Small series need to install MySQL in this machine, the installation process will be recorded as follows, I hope to have reference to others.
First, download software
1. Access to MySQL official website, landing their own Oracle account, download
This paper takes MySQL5.7.11 as an example to introduce the installation of Mysql5.7.zip under win system.
First, the prerequisite conditions:
1. Win Administrator
2. mysql installation package (Zip package)
Second, the installation process
Because I personally need to install MySQL in this machine, the installation process will be recorded as follows, I hope to have reference to others.
First, download software
1. Access to MySQL official website, landing their own Oracle account,
The following is divided into five major steps to introduce you to the MySQL 5.7.14 version of the installation tutorial. Interested friends to take a look at it.
The first step: Download the latest MySQL file and unzip:
Download the latest
Save the following code as a. bat file
Copy Code code as follows:
@echo off
Echo.
echo MySQL Database backup
Echo *****************************
Echo.
Echo is%date% today.
echo Time is%time%.
Echo.
Echo *****************************
MySQL will appear in Chinese garbled because
1.server itself set the problem, generally is latin1
2. No coding format was developed for the construction of the database.
MySQL in the form of input data appear in Chinese garbled solution:
1. When
Basically, there are a few tables in each system that are the structure of the parent-child relationship. Often a lot of people are using PID to do the association. When using the cake framework to write the Web when you first enter the IT industry,
Although this should not happen, usually like our relational database, we should be designed in advance, can not be changed later, but because of the negligence of the work before, in fact, it is not only my personal negligence, the main reason for
Ktime Start time series
Dtime Expiration Time string
Jmonth the number of months to pay interval optional (1,3,6,12)
Need to query data by month
For example ktime=1228406400 (2008-12-5) dtime=1259856000 (2009-12-4) jmonth=3
Starting from 2008-12-5,
Author: Yang Xinchi
Recently, 3 projects have been started on hand, the other 2 are starting from the bottom, one has been started for some time, in small cities under the conditions of small team development, there is no dedicated DBA to do the
Myisam_max_[extra]_sort_file_size big enough.
Delay_key_write reduces IO and improves write performance
Bulk_insert_buffer_size
Concurrent_insert set to 2
Read_rnd_buffer_size Random Scan use
Read_buffer_size Sequential Scan Table use
Recently got a dozens of m of MySQL script file, ready to revert to the database.
Used to use the Mysql-front for a short time MySQL, first use it to try, the results hang off.
Well, first create an empty database with Mysql-front, and then
The first method:1: In the terminal or under Windows:mysql-v can be.Can see the version is the MySQL Ver 14.14 distrib 5.1.42, for Win32 (IA32), this inside 5.1.42 is the version.The second: in MySQL:mysql> status; This needs to be logged in before
Source: www.freelamp.com
LAMP architecture site, I used to focus more on the installation/configuration aspects, about the relatively small development, because they are engaged in the development of less. The original text of this article is of
It's also taking 10 data.
SELECT * FROM Yanxue8_visit limit 10000,10
And
SELECT * FROM Yanxue8_visit limit 0,10
is not a quantitative level.
There are also a lot of five optimization guidelines on limit, which are translated from MySQL manual,
JSP Chinese garbled JSP MySQL garbled to the servlet inside support Chinese method:In the first sentence of Dopost or doget, add:Request.setcharacterencoding ("GB2312");Response.setcharacterencoding ("GB2312");JSP garbled problem in the JSP inside
This example describes the use of the MySQL Group_concat () function. Share to everyone for your reference, specific as follows:
Group_concat (), the manual explains: This function returns a string result with a non-null value of a connection from
2.6 Date_sub/date_add
Date_sub (Date,interval expr type)
The date argument is a valid datetime expression. The expr parameter is the time interval that you want to add.
SELECT ID from my_table WHERE create_time >= date_sub (now (),
One, AVG
AVG (COL)
Returns the average of the specified column
Two, COUNT
COUNT (COL)
Returns the number of non-null values in the specified column
Third, Min/max
Min (col): Returns the minimum value of the specified column
Max (COL):
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