Directory1. Tips2. Transaction (transaction)3. Indexes (Index)4. Export and backup of database5. Functions6. Anti-SQL injection7. Parsing SQL statements using explain8. Views (view)1 , Tips1), the database is not case-sensitive;2), when inserting
1. Go to the location where you want to store the installation packageCd/home/lnmp2. To see if the MySQL service is installed on the system, here are two ways:Rpm-qa | grep Mysqlyum List Installed | grep MySQL3. If installed, remove MySQL and its
First, the primary server-related configuration1. Create a sync account and specify the server address[Email protected] ~]mysql-uroot-pMysql>use MySQLMysql>grant replication Slave on * * to ' testuser ' @ ' 192.168.1.102 ' identified by ' 12345678 ';
MySQL incremental backup and Recovery experiment IntroductionIncremental recovery scenarios that are generally applicable:1, the human SQL statement destroys the database2. Loss of database data due to a system failure before the next full backup3,
Recently executed another MySQL version of the exported SQL script, there is a problem! For a number of reasons, the previous mysql5.5 uninstall, due to the uninstall is not clean there are some problems. Hereby summarize the Method!Reference Links:5
When calculating a numeric value, an error is generated by changing a number from code rounding to SQL rounding for integer processing. The field is a varchar type, and the modified result is calculated with the previous result when the decimal bit
MySQL version: when logging into the database:Mysql> SELECT @ @version;Mysql> select version ();Statusmysql> status;When you are not logged into the database:Mysql-vMySQL--versionD:\mysql\bin>mysql-vd:\mysql\bin>mysql--versionMySQL--help | findstr
AtlasHttps://github.com/Qihoo360/AtlasHttps://github.com/Qihoo360/Atlas/wiki/Installing-AtlasAtlas is a MySQL protocol-based database middleware project developed and maintained by infrastructure team of the Web PLA Tform Department in QIHU software
First, use the following command to view the current installation of MySQL, to find out if previously installed MySQLRpm-qa|grep-i MySQLYou can see the following as shown:The display was previously installed:Mysql-client-5.5.25a-1.rhel5Mysql-server-5
0. Conceptual understanding: What is the relationship between user sessions and connection threads?
A user session and a user connection thread are one by one corresponding relationships, and a session is a user-connected thread.
MySQL Service Basics:MySQL is a true multi-threaded, multi-user SQL database service that has become the most popular open source database system in the server domain with its high performance, reliability, and ease of use.MySQL Compilation
The basic operation of SQL is nothing more than additions and deletions (CRUD), according to the object classification of operations, can be divided into three categories, library operations, table operations and data manipulationLibrary
First of all, the question is: Today this problem, engaged me for half a day (want to cry), hope that the small partners can cross this hole!Problem Description:Sometimes our browser will appear with such a problem as shown in: Cause of the problem:
First, view the class
View MySQL's current metricsstatus;show status;
View character Sets
show variables like "%character%";show character set;
View Current User
select user();
viewing collationsSHOW
Database operations:---View warnings contentShow Warnings---View the current database in theSelect Database ();---see those databasesshow databases;---View database creation informationShow CREATE database S3;---Create a databaseCREATE database if
The following is the use of MySQL functions, not exactly, how much to write how much.Length (str): The character length of the return string (str). A Chinese character is counted as three characters, and a number or letter counts as one
I. Numeric functions 1. ABS (x) returns the absolute value of XSELECT ABS (-0.8),ABS(0.8);2.ceil (x) returns the largest integer greater than XSELECT Ceil (-0.8), Ceil (0.8);3.floor (x) returns the largest integer less than xSELECT Floor
MySQL Login nativeMysql-u root-p PasswordDatabase operations Create a databaseCommand: Create databases For example:mysql> CREATE DATABASE xhkdb;Display Databaseshow databases;Connecting to a databaseUse examples;Create a database and set the
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