One, Linux 1, stop MySQL services: service MySQL stop;2, modify my.cnf file, can be found through the Find/-name my.cnf file, the content contains[Mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysqlThat is the file we are looking
1. If the default value is not set:SELECT userinfo.id, user_name, role, Adm_regionid, Region_name, Create_timefrom userinfoleft JOIN region on Userinfo.adm_ RegionID = Region.idResults:Set display default values:SELECT userinfo.id, user_name, role,
SQL Tuning Set (STS) is an integral part of Oracle's 10 Gb SQL Tuning Advisor feature. Each adjustment tool set contains one or more SQL statements and the context information required to correctly interpret them. SQL Tuning Advisor uses an
For transaction TABLES, BEGIN and COMMIT should be used instead of lock tables to speed up insertion. Locking also reduces the overall time for multi-connection testing, although the maximum wait time for them to wait for LOCK will increase. For
How can I view the current auto-increment values of database tables?
Because the auto-increment field of the database table is unique, after a record is deleted, the auto-increment value of the record actually exists, therefore, if you want to
There are four database isolation levels, as described in the high-performance mysql book:
Then let's talk about how to modify the transaction isolation level:
1. Modify the global settings, modify the mysql. ini configuration file, and add
Copy
When sorting the viewing background, a requirement such as this is met, in the movie table there are ID (primary key auto-increment) and orderby (sort field ), suppose there are 10 Data IDs from 1 to 10, and the corresponding orderby is also from 1
Recently, I encountered a fault related to the full disk, and my colleagues also found that the operation of hang was not responded frequently due to the full disk, so I took the time to study these two cases.
Let's take a look at the official
1. Back up a database
######################################## ########################### Back up a database ########## ######################################## ################# root user, create the Backup Directory
1. test the effect of table variable creation on I/O
Test the space size of tempdb before and after table variables are created. Currently, the size is calculated using sp_spaceused. You can also use view sys. dm_db_file_space_usage.
14use
If you forget the MySQL root Password, You can reset it using the following methods:
1. KILL the MySQL process in the system;
2. Run the following command to start MySQL without checking its permissions;
Mysqld_safe-skip-grant-tables &
3. Use the
I. How to change the MySQL password in windowsIf you forget the MySQL password in Windows, you can do this:1. Disable the MySQL service that is running: net stop mysql or end the mysqld.exe process in windows Task Manager or find the mysql service
I encountered a problem when I was doing a wall lottery program today. I need to query the difference set of the table. The business situation is like this.
One table is used to store lottery users (www.111cn.net may have multiple pieces of data),
A recent developer study by Jaspersoft, an open-source business intelligence company, shows that the fate of Java and MySQL is good after Oracle acquired Sun.Java and MySQL are deeply rooted in Modern Open-Source Software stacks. Fortunately, users'
Hello everyone! My name is Larry stefonic. I am the senior vice president of MySQL. I am very happy to meet you here to introduce MySQL's enterprise-level applications and development in China.
(PPT) First, let's take a look at people's attitudes
Mysql error: Warning: #1366 Incorrect string value: the error is mainly caused by encoding problems. For example, if your gb2312 encoding contains traditional Chinese characters, this type of error will be prompted, therefore, this problem is caused
The previous article briefly introduced the usage of the EXPLAIN statement. Today we will introduce the following:
Slow query log
Enable slow query log
Save slow query logs to the table
Slow query log analysis
Percona Toolkit
Install
This example runs on MySQL 5.0 and later.
The simple format of commands granted to users by MySQL is as follows:
Grant permission on database objects to users
1. grant normal data users the right to query, insert, update, and delete all table data
Mysql toolkit is a small plug-in used to monitor and analyze databases. It is usually used to call perl to analyze and compare the current environment and database. It is worth learning.
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