The first thing to say is that Jetprofiler is a great tool for analyzing MySQL problems and optimization in your project. But look at the online article, the introduction of Chinese really not much. Is it because there is no MySQL in the country now?
MySQL queries are case insensitive by default, such as:Select * from where Str =' abc'; select * from some_table where str='abc';The results are the same, and if we need to differentiate, we can do it as follows:The first method:To make MySQL
1. To avoid full-table scanning, first consider establishing an index on the columns involved in the Where and order by.2. Avoid null-valued fields in the WHERE clause, which will cause the engine to discard full-table scans using the index, such as:
JDBC Connection DatabaseCreate a program that connects to the database in JDBC with 7 steps:1. Load the JDBC driver:Before connecting to the database, first load the driver of the database you want to connect to the JVM (Java Virtual machine),This
1. convert int to varchar often using concat function, such as concat (8, ' 0 ') to get string ' 80 'and menu_name like CONCAT (CONCAT ('% ', #{pd.keywords}), '% ')2. Convert varchar to int with cast (a as signed) a as varchar type stringSummary:
--Connect to MySQL database (provided the environment variable of MySQL database is configured, add path)Mysql-uroot-p--Set the input and output encoding of the text: CMD uses GBK, otherwise garbledSet names GBK;--Create a databaseCreate DATABASE
First understand the next updatexml () functionUpdatexml (Xml_document, xpath_string, New_value);The first parameter: Xml_document is a string format, the name of the XML Document object, and the docThe second argument: Xpath_string (a string in
Because of the filtering function in the firewall, it is forbidden to enter the outside data message, can setIptables-i input-p tcp-d 192.168.18.9--dport 3306-j ACCEPTIptables-i output-p tcp-s 192.168.18.9--sport 3306-j ACCEPTNote that this rule
1. DownloadDownload mysql-5.1.65.tar.gz on official website (note that the source package)You can also directly copy the 64-bit, download by command: wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz2.
Back to CatalogFor the use of date Functions in LINQ to entity requires an extension method in Dbfunctions, Instead of using the DATE function in. NET, because LINQ code is translated into SQL to the database side, such as your. NET method is not
MySQL data typeIn MySQL , there are three main types: text, numbers, and date/time types.Text Type:
Data Type
Description
Notes
CHAR (size)
Holds a fixed-length string (which can contain letters,
Show index from TABLE_NAMEThis command helps diagnose poorly performing queries, especially if the query uses an available index.The following describes the meaning of the result column that this command displays:| Table | Non_unique | Key_name |
Because MySQL has always been my weakness (in fact, I am very weak in all aspects), so recently in see MSYQL, just see the difference between varchar and char, so tidy up, easy to forget later. 0.0 pictures have explained everything, but the system
MySQL includes support for triggers. A trigger is a database object associated with a table operation that invokes the execution of a trigger on a table when a specified event occurs on the table on which the trigger is located.Create a TriggerIn
1. Click on the test plan, then click "Browse" to add the JDBC driver:Note: The JDBC Driver General location is located under the installation address of Java, with the path similar to: \java\jre\lib\extFiles are:
Why query speed is slowBefore trying to write a quick query, we need to be clear that what really matters is response time. If you think of a query as a task, it consists of a series of subtasks, each of which consumes a certain amount of time. If
Database development is a database management system (DBMS) and database application software design and development of the general term, data operation and maintenance, participate in the database production environment problem optimization and
| MySQL insert user error. mysql insert
When you add a user using insert, an error may be returned:
ERROR 1364 (HY000): Field 'ssl _ cipher 'doesn' t have a default value
The my-default.ini has a statement:
SQL _mode = NO_ENGINE_SUBSTITUTION,
MySQL (1), MySQL (1 MySQL learning route
Basic stage: Basic MySQL database operations (add, delete, modify, and query) and some advanced operations (Views, triggers, functions, stored procedures, etc ).
Optimization stage: How to Improve database
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