Introduction to a storage engineThe storage engine is a table type, and MySQL has different processing mechanisms depending on the table typeSee: http://www.cnblogs.com/6324TV/p/8481061.htmlTwo table IntroductionTable is equivalent to a file, a
First-level caching:Also known as local cache, sqlsession level cache. The first-level cache is always on, and the data that is queried during the same session as the database is placed in the local cache.If you need to get the same data, take it
There are two main ways to use MySQL for Python operations:
Native Module Pymsql
ORM Framework Sqlachemy
PymysqlDownload installationPIP3 Install Pymysql #PIP3 command path: Scripts directory under installation path # download
As a representative of the relational database, open source MySQL is basically something that a developer must learn and is the most suitable database for personal development--for free.First, go to the official website to download and install MySQL.
Introduction:
关于数据库优化,网上有不少资料和方法,但是不少质量参差不齐,有些总结的不够到位,内容冗杂偶尔发现了这篇文章,总结得很经典,文章流量也很大,所以拿到自己的总结文集中,积累优质文章,提升个人能力,希望对大家今后开发中也有帮助
1. Select the most applicable field propertiesMySQL is good at supporting large data volumes, but in general,
Mysql-proxy for read-write separationNeed to configure Master-slave synchronization: Five steps to complete MySQL master-slave replication主服务器Master:192.168.179.146从服务器Slave:192.168.179.147调度服务器MySQL-Proxy:192.168.179.142Download Mysql-proxyThe
A system database
Two database operations
Three-Name specification
Four user rights
Five. Change the password
Six forgot Password
Seven Chinese garbled problem
I. System database
INFORMATION_SCHEMA: Virtual
What do you mean businessA transaction is a set of operations units of SQL, either the operation succeeds or all fails.Acid attribute atomicity (atomicity)A thing must be considered as an inseparable minimum unit of work, the entire transaction
I. Features added in MySQL 8.01. New System Dictionary TableConsolidates transactional data dictionaries that store information about database objects, all of which are stored with the InnoDB engine2. Support for DDL atomic operationThe DDL of the
Problem Description:Download binlog logMysqlbinlog mysq-bin.000285 error when viewing Binlog logError:error in Log_event::read_log_event (): ' Sanity check failed ', data_len:73, event_type:30Error:could not read entry at offset 240:error in log
Allowed to connect to this MySQL server workaroundERROR 1130:host ' 192.168.1.3′is not allowed to connect to this MySQL server which is telling you that you do not have permission to connect the specified IP to the host, let's look at the workaround
1. Copy the table structure into the new table. (Data in the table is not copied)CREATE table new table like old table;OrCREATE Table New Table SELECT * from old table WHERE 1=2; 2. Copy the data into the new table. (The new table will not have a
MySQL drop empty table is in waiting for table metadata lock state, simple rough solution, original reason please crossing net1. mysql> Select Concat ("Kill", b.ID, ";") as kill_id from INFORMATION_SCHEMA. Innodb_trx A,information_schema.
Recently requested by the company, in doing database import export. The amount of data per day is about 350W. After a lot of testing, I feel the following method is betterData export :SELECT into ... OUTFILEBasic syntax:SELECT[IntoOUTFILE '
Error occurred when MySQL imported data: (2006, ' MySQL server has gone away ')Solution: The official explanation is that the appropriate increase in the max_allowed_packet parameter allows the client to transfer large data to the server side,
Lamp Architecture IntroductionLAMP is a shorthand for Linux Apache MySQL PHP, which is to put Apache, MySQL, and PHP on a Linux system to form an environment to run PHP's scripting language. Apache is the most commonly used Web services software,
How to optimize MySQL Foundation1, using the index to speed up the query Speed 2, the use of query cache or side-hanging cache, improve access speed cache: k/v key: Query statement hash value value: Query statement execution results which queries
MySQL: database entry 2: mysql database entry
# To remove a primary key, you must first unincrement the primary key.
Alter table info modify id int null, drop PRIMARY key
1. User Permissions1. Create a userCreate user 'hanshe' @ '192. 0.0.1
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