This article introduces five common MySQL parameters, including connection, query cache, temporary table, session memory, and slow query log.
(1) Connection
The connection usually comes from the Web server. The following lists some
In web projects, the entire site search problem is often encountered, that is, the customer wants to enter a word in the search box of the website, then, the page containing the word will appear in the search results on the entire website. Since a
The length function in mysql is a built-in function used to obtain the string length. The usage example is as follows:
(1) view the length of a string (such as the website)
Select length ('www .phpernote.com ');
(2) query the top 10 articles in
Sina sae official documentation: http://apidoc.sinaapp.com/sae/SaeMysql.html
Class SaeMysql implementation: http://apidoc.sinaapp.com/__filesource/fsource_sae__saemysql.class.php.html
The official Sina documentation provides a simple
1. Information_schemainformation_schema is the mysql information database. You can use this database to view the databases, tables, permissions, and other information under mysql. This database is generated by default in the database.
Mysql> select * from;+ ---- + ------ + -------------- +| Id | name | descri |+ ---- + ------ + -------------- +| 1 | a1 | I am the first a1 || 2 | a2 | I am the first a2 || 3 | a3 | I am a3 || 4 | a1 | I am the second a1 || 5 | a2 | I am the second
My experiences with MYSQL (1)
My experiences with MYSQL (2)
My experiences with MYSQL (III)
MYSQLBLOB Data Type in
BLOB is a large binary object used to store a variable amount of data. BLOB types include TinyBlob, Blob, MediumBlob, and
SQL multi-table join query instance
The following provides four SQL multi-table join query instances, with different efficiency.
Select * from order_info as a, ivrlog4ivrdlvinst as B
Where
(A. saleorder = B. ext1_skill and B. start_date = @ date1
SQL group by syntax and example
Group by statement
The group by statement is used in combination with the aggregate function to group result sets based on one or more columns.
SQL group by syntax
Select column_name, aggregate_function
SQL server
Replace null: isnull (arg, value)
For example, select isnull (price, 0.0) from orders. If the price is null, replace it with 0.0.
Comparison with null: is not null, is null
For example, select * from orders where price is null and price
① Automatically numbered field in Access
Right-click your table --> design table --> Find your id field (int type) --> id --> yes --> id seed (initial value) --> incremental id --> OK
② Use the IDENTITY (SEED, INCREMENT) parameter
Seed-start
I have been using MYSQL for a while. Because the company uses SQLSERVER and MYSQL, and the number of servers and databases is large
It is difficult to manage. I have been comparing it with SQLSERVER during MYSQL learning.
The first phase is
=========================================, Change the root password1. Disable the mysql service.Killall-TERM mysqld2. modify the configuration fileVi/etc/my. cnfIn the [mysqld] section, add skip-grant-tables.For example:[Mysqld]Datadir
In the following example, 'table _ name' indicates the data table name, 'index _ name' indicates the index name, and column list indicates the Field list (for example, 'id ', 'order _ id ').
1. Create an index
You can CREATE an INDEX in the create
MySQL display status information
1. show status
mysql> show status;+-----------------------------------+----------+| Variable_name | Value |+-----------------------------------+----------+| Aborted_clients | 0
1. Mysql commands for backing up a database
Copy codeThe Code is as follows:######################################## ########################### Backing up a database######################################## ########################### Root User,
PhpMyAdmin
PhpMyAdmin is a PHP-based MySQL database management tool based on the Web-Base architecture on the website host.
You can manage the entire MySQL Server (requires a Super User) or a single database. To implement the latter, You need to
When you install and run MySQL for the first time, you may encounter some errors, so that the MySQL server cannot be started. This section aims to help you diagnose and correct these errors.
When solving server problems, your first data is error
In mysqld section of my. cnf, add bind-address = 127.0.0.1. MySQL can only listen to a specific address.
Q: How can I specify that MySQL only listens to a specific address?
A: A common method is to add bind-address = 127.0.0.1 in mysqld section of
Today, when I used C # MySql for a project, I encountered unable to convert MySQL date/time value to System. an exception such as DateTime occurs because the date field in the table has a time such as 00-00-00 00:00:00, so this error occurs during
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