Database infrastructure --MySQL

database

For me, learning a new thing, we must first know what it is, know its main components. Here's a brief overview of the database.

A brief description of the database

  1, the database

  Database (database), can be regarded as short electronic file cabinets - premises storage of electronic documents (ie storing data warehouse), users can add the data file, query, update, delete, etc. .

The so-called "database" are stored together in a manner that can be shared by multiple users, have as small a degree of redundancy, the application data set independent of each other.
   2, the database management system
   DBMS (Database Management System, DBMS) is a database management system designed computer software, generally with storage, interception, security, backup, and other basic functions. It unified database management and control, in order to ensure the security and integrity of the database. Users, database administrators perform database maintenance by DBMS DBMS data by accessing the database. It allows multiple applications and users in different ways to different times or at the same time to establish, modify and query a database. Most DBMS provides data definition language DDL (Data Definition Language) and data manipulation language DML (Data Manipulation Language), the structure and mode permissions for user-defined database constraints, to achieve the additional data, delete files. Database management system is the core database system is a database management software. Database management system is to achieve the abstract sense the user data processing logic, computer software specifically converted into a physical data processing. With database management system, users can process data in an abstract sense, without regard to the layout and the physical location of the data on your computer. Database management system can be based on database model it supports to make the classification, such as relationships, XML; supported or based on computer type for classification, such as server clustering, mobile phone; or pursuant to a query language for classification, such as SQL , XQuery; or performance basis for classification impulse to focus on, such as the largest and highest operating speed; or will other classification. Either use classification, some of the DBMS can across categories, for example, supports multiple query languages.

  Common database management software: Oracle oracle, IBM's db2, sql server, Access, Mysql (open source, free, cross-platform).

  3, the database system

  Database system DBS (Data Base System, DBS) software, database administrators and data components. Its software includes the operating system, various host languages, utilities, and database management systems. Unified database managed by the database management system, data insertion, modification, and retrieval have to be carried out by database management systems. Data administrator is responsible for creating, monitoring and maintenance of the entire database, the data can be used by any person is entitled to effective use.

When I was learning database, mainly using Mysql, Mysql now introduce the following installation.

MySQL Installation

First, install

  In the windows system, downloaded directly from the official website (https://dev.mysql.com/downloads/mysql/),

After the compressed package after the download, unzip, create a need in the extracted files  my.ini  configuration file, and then configure some basic information. To be able to start mysql directly in the cmd, you can extract the path to bin folder under the folder added to the environment variable path. So my mysql directly installed.

Two, MySQL is commonly used commands

  1, the start mysql service mysql stop service command:

   net start mysql start MySQL 
   NET STOP MySQL stop MySQL 
  2, log on and exit the
   mysql - u root -p password
   quit / exit / \ p Log

 

 


Reproduced in: https: //www.cnblogs.com/xiaoqi521/p/11049569.html

Guess you like

Origin blog.csdn.net/weixin_33829657/article/details/93829589