MySQL basic knowledge of the essence of summary _1 (MySQL Past and Present)

0.  My is MySQL co-founder - Monty Widenius name of his daughter. MySQL is My and SQL combination, which is MySQL was named after.

1. MySQL is the most popular relational database management system, WEB applications MySQL is the best the RDBMS (Relational Database Management System, a relational database management system) one application software.

2. developed by the Swedish company MySQL AB, currently part of Oracle's products. MySQL is a relational database management systems , relational database stores data in separate tables rather than putting all the data in a large warehouse, thus increasing the speed and improved flexibility. MySQL SQL language used is the most common standardized language used to access databases . MySQL software uses a dual licensing policy, which is divided into community and commercial versions, its small size, high speed, low cost of ownership, and open source.

3. Introduction to Database (do not know what to make of white (like me), understand what matter database?)

When you want to listen to favorite songs, playlists can be opened from the smartphone. In this case, the play list is a database that is read out from the database.

When you take a picture and upload it to its micro-Bo, circle of friends, etc., such a social network account, your photo gallery, there may be stored in a database .

When you visit e-commerce site to buy shoes, clothes, etc. , you use the shopping cart is a database application .

Database everywhere. So what is a database? By definition, a set of database simply structured data .

Essentially correlated data, e.g., products belonging to the product category and associated with a plurality of labels. This is why you want to use a relational database.

In a relational database, we use the table of products, categories, tags and other data modeling. Table contains columns and rows. It is like a spreadsheet (Excel).

You can use table covered are: relationships one to one, one to many, many to one relationship.

Because we have to deal with large amounts of data, you need a way to define databases, tables, etc., and more efficient processing of data. In addition, we can convert the data into data information.

So we need to deal with SQL.

4.Mysql what features? (Concentrated a bit bloggers think useful content, other immaterial been abandoned)

  Written in C and C ++, and uses a variety of compilers tested to ensure source code portability.

     Support for AIX, FreeBSD, HP-UX, Linux, Mac OS, NovellNetware, OpenBSD, OS / 2 Wrap, Solaris, Windows and other operating systems.

        It provides an API for a variety of programming languages. These programming languages ​​including C, C ++, Python, Java, Perl, PHP, Eiffel, Ruby, .NET, and Tcl.

       Multi-threading, make full use of CPU resources.

  SQL query optimization algorithms, effectively speed up the search.

  Both can be used as a separate application on the client application server network environment, it can be embedded as a library and other software.

  Provide multi-language support, common coding such as the Chinese GB 2312, BIG5, Japanese Shift_JIS can all be used as a data table names and column names data.

  Provide TCP / IP, ODBC and JDBC database connectivity and other ways

  To provide for management, inspection and management tools to optimize database operations.

  Support for large databases. You can handle tens of millions of records have a large database.

  MySQL data using standard SQL language form.

  MySQL can be customized using the GPL agreement, you can modify the source code to develop their own system MySQL.

  Online DDL / change function, data architecture support staff flexibility and dynamic application development

5. MySQL storage engine

  Before the 5.1 MyISAM MySQL 5.0 database engine by default, the most commonly used. It has a high insert, query speed, but does not support transactions .

  Preferred 5.2 InnoDB transactional database engine, support for ACID transactions, supports row-level locking, MySQL 5.5 from the default database engine.

  5.3 Other not here cumbersome ...

6.RDBMS term

  • Database: The database is a collection of related tables.
  • Data: Table are matrix data. In a database table it looks like a simple spreadsheet.
  • Column: one (data element) contain the same data, such as a zip code.
  • Rows: one (= tuple or record) is a group of related data, such as a user subscription data.
  • Redundancy: store twice as much data redundancy reduces the performance, but to improve the security of the data.
  • Primary key: Primary key is unique. A data table can contain only one primary key. You can use the primary key to query the data.
  • Foreign Key: foreign key for associating the two tables.
  • Composite key: a composite key (key combination) the index key as a plurality of columns, typically used in the composite index.
  • Index: using the index can quickly access specific information in a database table. Index value in the database is one or more columns in the table is sorted a configuration. Catalog of books similar.
  • Referential integrity: the integrity of the relationship is not allowed in reference to the requirements referenced entity does not exist. Integrity is the entity relationship model integrity constraints that must be met, the purpose is to ensure data consistency.

Mysql Management Tools

MyDB Studio 

DBTools Manager 

dbForge Studio 

SQLWave Download

Download phpMyAdmin

Sequel Pro Download

HeidiSQL Download

Download Navicat

 

Guess you like

Origin www.cnblogs.com/txmg/p/11124998.html