Mind Mapping
Introduced
The most storage engines used in MySQL are InnoDB and MyISAM. As the default storage engine for MySQL, MyISAM is worth us to learn, the following is my "High-performance mysql"
Locking also reduces the overall time for multiple-connection tests, although the maximum wait time will rise as they wait for locking. For example:
Copy Code code as follows:
Connection 1 Does 1000 inserts
Connections 2, 3, and 4
In fact, this kind of argument is not entirely correct. First 1th, the MySQL query_cache key value is not simple query, but query plus databasename plus flag. This from the source can be seen. Here do not focus on the description, the follow-up can
The memory table is a table in memory, the size of the memory used can be specified by the max_heap_table_size in my.cnf, such as max_heap_table_size=1024m, the memory table is not the same as the temporary table, the temporary table is stored in
First, check the status of the system
Check the state of the system through some of the operating system's tools, such as CPU, memory, swapping, disk utilization, or, depending on experience or the state of the system when it is normal, sometimes
Objective: To import data from the MySQL server into the local
Device: Local: Mac. Remote server: Linux
Using SSH to log on to the server
Mysqldump-u [Username]-P [database_name] > [/PATH/DUMPFILENAME.SQL]
For example: ' Mysqldump-u
Recently in CentOS 7, through the Yum installed MySQL, after the successful installation, using root login, there are the following error:
ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:no)
MySQL
The thing is this: I have a BUYVM vps, the results of the machine hung, and then opened a new one to me, I asked to export a backup, they really rescued most of the data. Then there is a process of recovery. Web recovery is not difficult. The
databases, like the operating system, are shared resources that are used by multiple users. When multiple users have concurrent access to the data, multiple transactions are generated in the database while the same data is being accessed. Without
1, Mysql Errono 1005: The primary foreign key is not exactly the same, please check the following points:
A, whether the field exists
b, the type is consistent (note unsigned, powerdesign generation problem)
C, the database engine is consistent
D,
Enter installation directory .../bin/mysql.exe
CD Replacement directory dir lists all files in the current directory
The c:\vesa\...\a> angle bracket is expressed in the A folder of the C/vasa/.
CD space ... Indicates an up-level directory
By default, MYSQLDB packages are not installed, do not believe? See the code similar to the following you believe it.
Copy Code code as follows:
-bash-3.2#/usr/local/python2.7.3/bin/python get_cnblogs_news.py
Traceback (most recent
MySQL's storage engine may be the most characteristic of all relational database products, not only to use multiple storage engines at the same time, but also the very loose coupling between each storage engine and MySQL using the plug-in approach.
Creation of tables
CREATE TABLE ' Lee ' (
' id ' int ' () not NULL auto_increment,
' name ' char (#) DEFAULT null,
' birthday ' datetime D Efault NULL,
PRIMARY KEY (' id ')) engine=innodb DEFAULT Charset=utf8
Data insertion:
In simple terms, the master and slave copy of MySQL is a C/s architecture application. Master can be considered to be a client in our usual sense of server,slave. The I/O thread on the slave requests master data, and master verifies that the slave
MySQL Distinct Delete Query results duplicate recordsDISTINCTUse the DISTINCT keyword to remove duplicate records for a field in a query.Grammar:
SELECT DISTINCT (column) from Tb_name
Example:Assume that the user table has the following
Statistical averagethe SELECT AVG () from syntax is used to average statistics from data tables.Grammar:
SELECT AVG (column) from Tb_name
This SQL syntax is used to count the average of a numeric type field, and the AVG () cannot be
This article uses the extended functionality of MySQL REPLACE into to generate global id,replace into and insert functionality, but when inserting new rows with replace into, if the newly inserted row's primary key or unique key (unique key) When an
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