A database basics
1, the database Overview
Database is in accordance with the data structure to organize, store and manage the data warehouse, which itself can be seen as electronic filing cabinets, users can increase the data file, delete, modify, query and other operations.
Database main features:
- Structured data
- Data sharing
- High data independence
- Unified Data Management and Control
Several important part of the database system:
- Database --DataBase (DB)
- Database system --DataBase System (DBS)
- Database management system - DataBase Management System ( the DBMS)
- Relational database management system --Relational DataBase System (RDBMS)
2, database storage structure
The database is stored and managed data warehouse, but the database does not directly store the data, the data is in the table, the data stored in the process will be used to store the database server, database server refers to the so-called install a database on a computer management systems such as Oracle, MySQL and so on.
3, SQL language
SQL (Structured Query Language Structured Query Language) is a database query language and programming language used primarily in data management database, developed by IBM Corporation completed.
The main part of the SQL language:
⑴ data definition language (DDL)
DDL statements are used to define the major databases, data tables, including statements create, alter, and drop statement statements.
⑵ data manipulation language (DML)
DML statement is mainly used for the database to add, modify, delete operations, including insert statements, update and delete statements statements.
⑶ Data Query Language (DQL)
DQL statement is mainly used to query the data, which is refers to the select statement.
⑷ Data Control Language (DCL)
DCL statement is mainly used to control user access, including the grant statement, revoke statements, commit and rollback statements statements.
4, common database products
- Oracle Database - Oracle
- MySQL database - Sweden -> Sun -> Oracle
- SQL Server database - Microsoft
- MongoDB database - 10gen
- DB2 databases - IBM
Two MySQL Installation and Configuration
1, Windows platform installation and configuration of MySQL
2, Linux platform installation and configuration of MySQL
Three MySQL directory structure
- bin directory
- data directory
- include directory
- lib directory
- share directory
- my.ini
- my-small.ini
- my-medium.ini
- my-large.ini
- my-huge.ini
MySQL uses four
1, start the MySQL service
After MySQL installation is complete, there are two ways to start the service process:
- Start the Windows Service Manager
- Start by DOS command
2, log MySQL database
There are two login MySQL database under the Windows operating system mode, as follows:
- Login using related commands
- Login using MySQL Command Line Client