Storage Engine
The storage engine is a table type, and MySQL has different processing mechanisms depending on the table type
Table is equivalent to a file, a record in the table is equivalent to a row of the file, but a record in the
In MySQL, does the field in the INSERT INTO insertion statement have to fill in all the fields of the table?For example, table Tab_name has (COL1,COL2,COL3,COL4) 4 fields.Just fill in what you need to add, and then write the column name with
SET sql_safe_updates = 0;Update and delete operations will be performed smoothlySET sql_safe_updates = 1; ( safe update mode)In the update operation: The update is rejected when the Where Condition (column) has no index available and no limit
MySQL self-increment ID gets
The
uses the max function: select Max (ID) from tablename
Advantages: Easy and quick to use.
Disadvantage: Get not the real self-increment ID, is the largest ID in the table,
1. database table name naming specification The use of 26 letters (case-sensitive) and 0-9 of the natural number (often do not need) with an underscore ' _ ' composition; The name is concise and clear, and multiple words are separated
Saltstack execution results are saved to MySQL for command security auditsMust be an environment above python2.7Install related modulesUbuntu System InstallationApt-get install-y Python-mysqldbCentOS System InstallationYum Install-y
Develop a daemon script that monitors MySQL master-slave replication anomalies (including unsynchronized and delayed) every 30 seconds#!/bin/bashfile=/root/mysql.txt #mysql > Show slave status\g; This command can view status information and save it
1.1 Database Introduction1. What is a database?1. A database is a warehouse that organizes, stores, and manages data in accordance with its structure, each with one or more differentAPI (interface) for creating, accessing, managing, searching, and
Recently in the completion of the MySQL project integration, need to increase the functionality of the batch update, according to the online data collated a bit, very useful, have been tested, can be used directly.MySQL batch update has the
Take the MySQL5.5.33 version as an example1. Preparatory work: 1. First prepare source code package 2. and ensure that the " development tools "package Group and cmake compilation tool 3. Make sure the installation is good
mysql-5.5.47 Installation1. Download the source package in advance or enter the server to upload the source package and extract it.Cd/home/rich/toolsRz-y "Mysql-5.5.47-linux2.6-x86_64.tar.gz"Tar XF mysql-5.5.47-linux2.6-x86_64.tar.gz2. Create an
Generate a random eight-digit discount code and save it to the Mysql database.
Currently, many sellers use discount codes to perform activities. Now we can easily implement eight-digit discount codes and store them in the database.
1. The randomly
MySQL replication advantages and principles
Replication transfers the DDL and DML operations of the primary database to the slave database through binary logs, and rewrites the data from the slave database to ensure data synchronization between the
MySQL quick comparison data skills, MySQL DATA skills
In MySQL O & M, R & D colleagues want to compare the data on two different instances and find out the difference. In addition to the primary key, they also need to compare each field. How can
When MySQL uses indexes and when it does not use indexes.
Index:
You can use indexes to quickly access specific information in database tables. An index is a structure that sorts the values of one or more columns in a database table, for example,
Use sqlyog to connect to ubuntu mysql server Error solution, sqlyogubuntu
Currently, many services are deployed in the linux environment, but in the development stage, the use of windows Remote connection tools is intuitive, which is more friendly
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