Remember a very long SQL, in order to facilitate reading, I have added the paragraph: SELECT * from ( (SELECT 1 asAcheck, S1.id, S1.plan_name, S1.cost_mode, S1.sta_type, S1.cost_type, S1.cost_period_time, S1.cost_period_value, S1. '
When accessing the MySQL database, the project often appears communications link failure error, which seems to be an idle connection over the database settings "Wait_timeout", MySQL will be out of the connection, The MySQL connection pool also
For English, MySQL's Fulltext property is quite convenient and efficient to implement full-text retrieval, but there are some things to be aware of in the process of using.First, we add the Fulltext attribute to the field we need to retrieve
binlog_do_db;binlog_ignore_db;This two parameter is used to control which database changes to log; The following is an example of binlog_ignore_db.if Binlog_ignore_db=studio;Use studio; INSERT into t (x, Y) VALUES (2,2);--This is not a binary log,
LOADDATA LOCAL INFILE'C:/xampp/htdocs/test/file/sample.csv' into TABLESample1fields TERMINATED by ','Enclosed by '\"'LINES TERMINATED by '\ r \ n'IGNORE1LINES (Presidency, President,@x,@x,@x, Party,@x,@x,@x)You can insert the specified line,
Summary You have a error in your SQL syntax; Check the manual, corresponds to your MySQL server Versio This sentence for us is not unfamiliar, nothing more than "," and so on. But if you inadvertently add a reserved field in MySQL as the field name
There has been a misunderstanding of the index, plus index of the disadvantage is that the increase in storage space, and increase the cost of adding and removing, but these I think for more and more good hardware, there is no big problemSo I always
Last night to help friends set up a server, has been a yum MySQL can not install. The error message is as follows:Transaction Check Error:File/etc/my.cnf from install of mysql-libs-5.1.66-2.el6_3.x86_64 conflicts with file from package lunamp-1.1.9
Explore paging performance-mysql
Paging technology is very common in development. I used paging technology for the two projects I just joined the company, so I thought about in-depth exploration of paging technology.
Several common paging
MySQL study note _ 7_MySQL common built-in functions MySQL common built-in functions
Note:
1) it can be used in SELECT/UPDATE/DELETE and where, orderby, and having.
2) use the field name as a parameter in the function. The value of the variable
MySQL study note _ 12_Linux C ++/C connect to MySQL database (2) -- return the data SQLZookeeperConnect C ++/C to the MySQL database in Linux (2) -- SQL statement for returning data reference: SQL statement for returning data refers to extracting
MySQL obtains slow log information by time.
Handle a case today: the database is abnormal and the number of connections suddenly increases.I want to analyze the slow log, but I can see that the slow log is several GB, and it is a short log format.
Modify the data page size of Innodb to optimize MySQL.
We know that the data page of Innodb is 16 KB, which is a rigid rule. There is no change in the system. We hope MySQL will support multiple data pages in the same way as Oracle in the
Optimization of not in and minus in MySQL, mysqlminus
Before optimization:
select count(t.id) from test t where t.status = 1 and t.id not in (select distinct a.app_id from test2 a where a.type = 1 and a.rule_id in (152
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