After installing MySQL we need to be familiar with the basic operation of MySQL, this article mainly introduces the database and table additions and deletions, as well as indexes, transactions, views.First, MySQL database and table creation and
Error code:CMake Error at cmake/boost.cmake:81 (MESSAGE):You can download it with-ddownload_boost=1-dwith_boost=Workaround:1. Create a folder named Boost under/usr/localMkdir-p/usr/local/boost2. Go to this newly created folder and download boostwget
One, DDL (data definition Language) statement: the database definition language.These statements define different data segments, databases, tables, columns, indexes, and other database objects. Common statement Keywords: create, drop, alter, and so
1. Initial installation of MySQL, insert Chinese characters, appear??? The formTerminal tip:Pymysql.err.InternalError: (1366, "Incorrect string value: ' \\xE4\\xBD\\xA0\\xE5\\xA5\\xBD ' for2. Refer to the blog post:Https://www.cnblogs.com/houqi/p/571
Because of some default settings in the project, and for various reasons, MySQL database needs to be developed in a non-strict mode (the most recent version of MySQL is turned on in strict mode by default).Under Linux MySQL service, the following
database introductionWhat is a database?A database is a warehouse that organizes, stores, and manages data according to its structure.Each database has one or more different APIs for creating, accessing, managing, searching, and replicating the
the step problem of MySQL self-increment column
Unique index and Federated unique
Variants of foreign keys
SQL data row additions and deletions change
View
Trigger
Function
Stored Procedures
Transaction
Brief introduction1. User Management2. Authorization control3. Log Management4, solve the problem of data garbledExperimental environment
System Environment: centos7.4
Host IP Address: 192.168.100.71
Yum Mount directory:/mnt/sr0
1, query whether the lock tableShow OPEN TABLES where In_use > 0;Query to the corresponding process = = and then Kill ID2. Query processShow ProcesslistAdd:Viewing transactions that are being lockedSELECT * from INFORMATION_SCHEMA. Innodb_locks;View
Ext. 546915901. Generating ideasUsing MySQL memory table insertion speed features, first use functions and stored procedures in the memory table to generate data, and then inserted from the memory table in the normal table2. Create memory table and
MARIADB database management System is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL license.One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of
Uploading packagesrz上传jdk-8u181-linux-x64.tar.gz和apache-tomcat-8.5.32.tar.gz或者FileZilla Client进行sftp链接上传
Unzip the JDK to the/usr/local/directory
tar xzvf jdk-8u181-linux-x64.tar.gz -C /usr/local/
See if Java is installed
The purpose of MySQL performance optimizationHow to design the database rationally?What database design can provide the cornerstone for post-DBA optimization?The difference between database design and program design?Early optimization of database
There are two ways of MySQL: floating-point and fixed-point. Floating-point numbers include float (single-precision) and double (double-precision), while the number of points is only a decimal representation.Fixed-point numbers are stored as strings
After the construction of the. NET in the front of the environment after the need to build database-related environments, first I choose the data is MySQL, in the choice of MySQL at the same time consider I use Tomcat to control the database or
Select Database_name,max (last_update) from Mysql.innodb_table_stats GROUP by database_name;SELECTTABLE_NAME,Update_timeFromInformation_schema. TABLESWHERETable_schema = ' database name ';SizeSelect table_name, concat (Truncate (data_length/1024/1024
This section focuses on:
How to find the relationship between two tables
Three types of relationships in the table
First, IntroductionBecause of the constraints of foreign key, the two tables form three kinds of relationships:
Introduction: lower_case_table_namesis a parameter for MySQL to set case sensitivity.1. Parameter Description:
The lower_case_table_names=0 table name is stored for the given size and the comparison is case-sensitivelower_case_table_names =
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