(A) MySQL Basic Configuration

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:

  1. Structured data
  2. Data sharing
  3. High data independence
  4. 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

  1. bin directory
  2. data directory
  3. include directory
  4. lib directory
  5. share directory
  6. my.ini
  7. my-small.ini
  8. my-medium.ini
  9. my-large.ini
  10. 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:

  1. Start the Windows Service Manager
  2. Start by DOS command

2, log MySQL database

  There are two login MySQL database under the Windows operating system mode, as follows:

  1. Login using related commands
  2. Login using MySQL Command Line Client

3, MySQL related commands

4, reconfigure MySQL

Guess you like

Origin www.cnblogs.com/9X-MING6/p/9478586.html