Designing a MySQL index can make your database fly, greatly improving database efficiency. Note the following points when designing a MySQL index:1. Create an indexIndexes are especially important for applications where queries account for the
I. MySQL service operations0. Check the database version SQL> status;1. Net start MySQL // start the MySQL Service2. net stop MySQL // stop MySQL Service3. mysql-H host address-u user name-P User Password // enter the MySQL database4. Quit // exit
1.1. Data Storage Methods
1. manual management stage
2. File System Phase
3. Database System stage
1.2. Database generic
Database generics are the rules that databases should follow. Database generics are also known as paradigms. Currently,
A trigger is an event that triggers an operation. These events include insert statements, update statements, and delete statements. When the database system executes these events, the trigger is activated to execute the corresponding operations.
ArticleDirectory
11.1.1 insert data for all fields in the table
11.1.2 insert data for specified fields in the table
11.1.3 insert multiple data records at the same time
11.1.4 insert query results into the table
11.1 insert
Assume that you have logged on
Mysql-H localhost-uroot-proot
5.1. display, create, and delete Databases
Showdatabases; display all databases
Createdatabase xxx; Create a database
Dropdatabase xxx; delete a database5.2 database storage engine
4.1 Integer type
Tinyint (4)
Smallint (6)
Mediumint (9)
INT (11)
Bigint (20)
Note: The following is the default display width. Taking int as an example, the number of storage bytes occupied is 4, that is, 4*8 = 32 bits, and the power of 2 is 32
I. Permission tableThree permission tables in the MySQL database: User, DB, hostThe access process of the permission table is:1) check whether the connected IP address, user name, and password exist in the table from the host, user, and password
MySQL for Linux
First, check whether MySQL is installed on the system. If yes, uninstall it.Rpm-Qa | grep MySQLNote that MySQL is case sensitive and case sensitive.Rpm-e -- nodeps MySQL *Be sure to use -- nodeps to uninstall without checking the
I need to use Qt in Ubuntu to connect to the MySQL database. I have found a lot on the Internet. This article is clear. At the beginning, mydb cannot be opened. It should be because no "mydb" file is created in MySQL (to be
MySQL basic commands
MySQL basic commands
1. Show databases; displays all databases
2. Use a database with the database name
3. Show tables: displays all tables in the current database
4. DESC table name query table structure
5. Create
Document directory
16.1.1. Use the mysqldump command to back up data
16.1.2 directly copy the entire database directory
16.1.3 quick backup using mysqlhotcopy
16.2.1 restore using MySQL commands
16.2.2 directly copy to the database directory
13.1 mathematical functions
Random numbers may be used, and others are ignored.13.2. String Functions
Key Concat (S1, S2 ....)13.3. Date and Time Functions
Key Points13.4 conditional judgment Functions
If (expr, V1, V2)
Ifnull (V1, V2)
Case
8.1 view Overview
A view is a virtual table exported from a database table, view, or multiple tables. It facilitates user operations on data.
8.2 create a view
You must have the create view and select permissions.
Select select_priv,
Document directory
7.1.1. Meanings and features of Indexes
7.1.2. Index classification
7.1.3 index design principles
7.2.1 create an index when creating a table
7.2.2 create an index on an existing table
7.2.3 use the alter table statement
Document directory
2.1.1 Installation
2.1.2 uninstall
2.2.1 Installation
2.2.2 uninstall
2.3.1. MySQL
2.3.2. mysqladmin
2.1 install the MSI installation package 2.1.1
Note that you must delete the original my. you can change the name of INI
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