: https://www.mysql.com/downloads/Download selection : Go to "MySQL Community Server", select Windows (x86,32-bit), MSI Installer (graphical installation interface)Use the CMD terminal to manipulate MySQL:1. Start the service: Enter the Boot service
Explain is MySQL's own query optimizer, which is responsible for the optimizer module of the SELECT statement, which simulates the optimizer's execution of SQL query statements to know how MySQL handles SQL, and the syntax is simple: Explain +
Introduction of Storage EngineMySQL uses a separation of business logic and data storage architecture, the underlying storage engine for the upper layer of the SQL support; MySQL uses plug-in way to load the storage engine directly into the running
First, IntroductionMySQL is an open source database management system, which is more lightweight, less expensive than Oracle, and becomes more and more popular with businesses, especially small and medium-sized enterprises, as they become more
Tag: IMA IP) reference Registration info completed after ref zip decompressionAddress http://dev.mysql.com/downloads/Click here: DOWNLOAD link, enter the page:Click here: DOWNLOAD link, enter the page:You are required to register for a website
A few days ago should be a friend to help write a data management program, need to use MySQL, since it is a small program, programming language has chosen easy language, sure enough, it was soon done.But found a very serious problem, easy language
MySQL's numeric data types can be roughly divided into two categories, one is an integer and the other is a floating-point or decimal. Many different subtypes are available for each of these categories, and each subtype supports data of different
Mycat Sub-database although can solve the large table on the system of the pressure, but there are some disadvantages, so the Mycat sub-table sub-Library to solve the problem is that the sub-Library, which library, what rules, divided how many
Summary of COMMON commands:
12345678910111213141516171819202122232425262728293031323334353637
create database name; Creating a database use databasename; selecting a database drop database name; Delete the database
There are always some complex logic that we need to use more than once, and it shows the importance of the function at this point.Features of the MySQL function
Name of function
Parameter list
function body
return value
Transaction1. Definition: All operations must be completed successfully, otherwise all changes made in each operation will be revoked.2, the acid of the transactionAtomicity atomicity Consistency Consistency isolation isolation persistence
the use of MySQL data files is only extended and not recycled. After you perform a delete on a table, the data files on the disk do not shrink. the usual practice is to logically export and then truncate the original table (or delete the Rebuild)
The two bottlenecks common to MySQL databases are CPU and I/O. CPU typically occurs when the data is loaded into memory or read from disk, when the data loaded is much larger thanMemory capacity, I/O bottlenecks can occur at this time, if it is a
Issue background:There are two MySQL, a master one from, developed in the code even MySQL cluster, found that there are errors. Even the main library single point OK, even from the library single point error:Table
1. Requirements overview
Back up MySQL database data 00:00 every day;
Each library generates a file, using gzip compression, file name: Backup_ Library Name _yyyymmdd. sql.gz, note that YYYYMMDD need to be the day before;
Save the
Select Curdate (); --Get the current dateSelect Last_day (Curdate ()); -Get the last day of the month.Select Date_add (Curdate (), Interval-day (Curdate ()) +1 day); -Get the first day of the monthSelect Date_add (Curdate ()-day (Curdate ())
Uppercase and lowercaseAdd the keyword binary before the conditionTake an integerFloor: The function returns only the integer part, and the fractional part discardsRound: Function roundingCeil: Rounding upConditional judgmentIF (EXP1,TRUE-EXP2,FALSE-
To install the MySQL semi-sync plugin:Primary Server Installation Plugin:Mysql> show global variables like ' plugin_dir% ';+---------------+--------------------------+| variable_name | Value |+---------------+--------------------------+| Plugin_dir |
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