MySQL Analysis-profile Detailed introduction
Profiling is open from the mysql5.0.3 version.After the profile is started, all queries including the wrong statements are logged.This tool can be used to query the SQL execution state, how much time
After installing MySQL with sudo apt-get install mysql-server mysql-common a command on Ubuntu, you are not prompted to enter a password during installation. Then use mysql -u root -p to log in, and then asked to enter the password, but no
MySQL Rights management MySQL permissions check principle
Two stages of permission checking
Do you have permission to link up
Do you have permission to perform this operation
How does the server determine if the user has
MySQL master-slave configuration Home Server settings1. First create a user who can connect from the server and grant permissions (usually only the Read permission is enough)# mysql -u root -p# 允许本地 IP 访问 localhost, 127.0.0.1# insert into mysql.user(
By default, the MySQL binary log file is saved in the default data directory, such as:/usr/local/mysql/dataTo modify the log save Directory (/backup/mysqlbinlog/mysql-bin):Log-bin entries in the/etc/my.cnf file, such as
Physical Backup: Copy database files directly for large database environments (such as data files, control files, archive log files, etc.). However, you cannot restore to a heterogeneous system such as Windows.
Logical Backup: Backup is the SQL
The first step:My Computer, properties, advanced environment variablesSelect Path, after which you add: the path to your MySQL bin folder (e.g. C:\Program files\mysql\mysql Server 5.6\bin)Path= ...; C:\Program Files\mysql\mysql Server 5.6\binStep
The following error was reported when the MySQL client executed the delete DELETE statement:Problem:[ERR] 1055-expression #1 of ORDER by clause are not in GROUP by clause andContains nonaggregated column ' Information_schema. PROFILING. SEQ 'Which
This article is based on the internet and I'm just verifying that:46645763Https://jingyan.baidu.com/article/86fae346aa437f3c48121a5b.html1: Install Nysql# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm# RPM-IVH
The work has the following SQL, for a.id = ' ABCDEFG ', left join B and C two tables, to find additional information. Even if there are no records in B and C that meet the criteria, the final result is definitely not empty. Because a.id = ' ABCDEFG '
1. Index Type 1.1 B-tree indexData is stored using the B-TREE data structure, so the index values are stored sequentially, and the distance from each leaf node to the root node is the same. The height of the b-tree is log (n) level, so the
1. In Ubuntu, the part of MySQL encoding format is not utf-8, so in the document will appear in Chinese garbled, Windows encoding format is GBK, so to modify MySQL encoding method is utf-8.2. View the MySQL encoding format:A. Enter MySQLB. Input1
, in the MySQL database, when the field type is TIMESTAMP, if the default value is Current_timestamp, when you insert a record, the value of End_time is automatically set to the current time of the system, if the on UPDATE is checked Current_
MySQL Download: https://downloads.mysql.com/archives/community/1. Configure MY.CNF to turn some options on or off according to the master/slave library Environmentdatadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.socksymbolic-links=0#event_scheduler=
Original linkMARIADB is installed by default in CentOS, this is the branch of MySQL, but in order to need, it is necessary to install MySQL in the system, and after the installation is complete, you can overwrite the mariadb directly.1 Download and
BEGINDECLARE userid varchar (64); --ID--Traversal data End flagDECLARE done INT DEFAULT FALSE;--CursorsDECLARE cur_account CURSOR for select id from S_user where 1=1;--Bind the end flag to the cursorDECLARE CONTINUE HANDLER for don't FOUND SET done =
Reproduced
1. Download the latest MySQL decompression version of the corresponding platform from the official website, HTTP://WWW.MYSQL.COM/DOWNLOADS/2. Unzip the downloaded file, copy it to the Phpstudy MySQL folder, and I'll copy the folder
20. Using views1. ViewThe view is a virtual table. Unlike a table that contains data, a view contains only queries that retrieve data dynamically when used.Example: SELECT cust_name, Cust_contactFrom customers, orders, OrderItemsWHERE customers.cust_
mSQL a field inside a table stores a person's address, one day the address of the inside of a placeName has changed, then his address will change:Like what:It turns out to be:Table name: User_item, field: Addr [HTML] View plainCopy
Number
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