(1) Configuration Open
Linux:
Add the following statement to the MySQL configuration file my.cnf:
Log-slow-queries=/var/lib/mysql/slowquery.log #指定日志文件存放位置, can be null, the system will give a default file Host_name-slow.logLong_query_time=5
Today I want to export some of the data for half a day finally find a corresponding several methods
First look at the character set, the province of the export time is garbled
1. By order
The code is as follows
Copy Code
The test table I set up is like this:
The code is as follows
Copy Code
CREATE TABLE ' foo ' (' Key ' VARCHAR not NULL,' Time ' INT (one) is not NULL,PRIMARY key (' key ')) Engine=myisam DEFAULT Charset=utf8;
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
First, login WDCP panel background add site
In the menu on the left, site management-new site, you can create the new domain name site we need. According to Chinese prompts input we need to set the host name, binding domain name,
Store time stamp to MySQL database, use conversion function Unix_timestamp.
Pgsql
The code is as follows
Copy Code
INSERT into Tbl_name (col1) VALUES (Unix_timestamp (' 2012-11-13 13:54:22 '));1 INSERT into Tbl_name
Basic usage
The mysql stored procedure is gradually adding new functionality from the MySQL 5.0 start. Stored procedures are also more advantageous than disadvantages in practical applications. But the main thing is execution efficiency and SQL
First, use the following table for examples:
The code is as follows
Copy Code
01.CREATE TABLE articles (02.id INT UNSIGNED auto_increment not NULL PRIMARY key,03.title VARCHAR (MB), 04.body text,05.ful Ltext (Title,body)
MySQL tutorial supports the implementation of Chinese Full-text search
Without affecting the system structure of MySQL and other functions, this paper solves the shortcoming that MySQL can not correctly support Chinese Full-text search and
After MySQL was acquired by Oracle, more and more people expressed concern about the future of MySQL, the open source of MySQL, more or less of Oracle's own database products, the impact of the open source of free MySQL for Oracle more baggage than
With regard to the benefits of MySQL indexing, if the correct and reasonable design and use of the index MySQL is a Lamborghini, then there is no design and use of the index MySQL is a human tricycle. For tables with no indexes, a single table query
Error:MySql Host is blocked because of many connection errors, unblock with ' mysqladmin flush-hosts ' Workaround: Use MYSQLADMI N flush-hosts command to clean up the Hosts file (do not know in which directory mysqladmin can use the command to find:
The previous article has adjusted the single redo statement to the optimal, but the statement is executed in one-threaded fashion. Can the multi-processor be used to allow multi-threading to be executed in parallel to further improve speed? For
1.loopGrammar:[ begin_label :] LOOP END LOOP [ end_label ] statement_list example: CREATE PROCEDURE doiterate (P1 INT) BEGIN label1:loop SET p1 = p1 + 1; IF P1 iterate can appear only Within loop , repeat , And while statements. iterate
in the In MySQL, each connection executes the Init-connect first, and the connection is initialized. Here we can get the user's login name and the thread ID value. Then with Binlog, we can trace the operation time of each operation statement,
Summary of the practical methods for optimizing SQL query statements, and the practical use of SQL query statements
Optimization of query statements is a way to optimize SQL efficiency. You can optimize SQL statements to use existing indexes as much
Mybatis-generator-gui-an interface tool for Automatic Generation of mybatis code, mybatisgeneratorgui
What is mybatis-generator-gui?
Before introducing mybatis-generator-gui, it is necessary to introduce what is mybatis generator (
Recently, I am playing the Mac. As a developer, the development environment is necessary. Of course, xmapp has this integration package, but how can I use the integration package for systems on mac such a tall one, so I plan to use the command to
Use your own domain name or sub-same cool.freehostingnow.com10 GB disk space10 GB bandwidthSupport for mysql + PHPThree mysql databasesControl panelFTP accessApplication address: http://www.freehostingnow.comFree host 299.9% of servers run
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