Home Database Mysql Tutorial Mysql门徒(1):关于Mysql的点点滴滴_MySQL

Mysql门徒(1):关于Mysql的点点滴滴_MySQL

Jun 01, 2016 pm 01:31 PM
Database systems

bitsCN.com

一、参考:

《Mysql 必知必会》

《数据库系统概论》

 

二、数据库基础知识回顾

1、数据(data):数据库中存储的对象,描述事物的符合记录。

2、数据库(database,简称DB):存放数据的仓库。

特点:(1)、数据结构化;(2)、数据的共享性高,冗余性低,易扩展、(3)、独立性高、(4)、由DBMS统一管理。

3、数据库管理系统(DataBase Management System, 简称DBMS)

数据管理软件,和操作系统一个性质。

DBMS可分两类:

(1)、基于共享文件操作系统的DBMS,如MS Access

(2)、基于客户机-服务器的DBMS,如Mysql、SQLserver、Oracle。

mysql1

4、主键(primary key):一列,其值能够区分表中的每一行。注意,需保证每一个表都具有一个主键,尽量不要去改变主键。

5、SQL(Structured Query Language):专门用来与数据库通信的语言。

三、Mysql简介

首先个人觉得Mysql的优点:

免费、开源

性能好

环境搭建简单,容易入手

可移植性强,跨平台。

缺点:

在处理大数据上面有些吃力

1、Mysql版本

我现在用的是Mysql5.0,我其实并没有关注Mysql的版本,这说明一点,我并没有关注Mysql的前途,啊哈哈哈。

查看版本方法如下:

(1)、mysql> status;

m1

(2)、select version();

m2

 

2、Mysql工具

(1)、命令行

如在Window下打开Mysql:

m3

Mysql路径(mysql.exe)+’-u root –p’即可。如:C:/Program Files/MySQL/MySQL Server 5.0/bin/mysql -u root –p

书中介绍都是mysql -u root -p 就可以打开mysql了,但是这是在linux下的命令,但是在windows却不一样,

启动、停止Mysql:

m5

m4

 

注意:命令行下

命令输入在mysql>之后

;或/g结尾,仅按Enter不会执行命令

输入help或/h获得帮助

输入quit或exit退出命令行

 

推荐使用Navicate for mysql

bitsCN.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the three-level schema structure of a database system? What is the three-level schema structure of a database system? Jul 23, 2021 pm 03:58 PM

The three-level schema structure of the database system means that the database system consists of three levels: external schema, schema and internal schema. The schema, also called the logical schema, is the common data view for all users; the external schema, also called the user schema, is the data view of database users and is a logical representation of data related to an application; the internal schema, also called the storage schema, is the data within the database. of organization.

Redis: a key technology for building high-availability database systems Redis: a key technology for building high-availability database systems Nov 07, 2023 am 09:39 AM

Redis: a key technology for building high-availability database systems. With the development of the Internet and the advent of the big data era, the need for high-availability database systems has become increasingly urgent. As an in-memory storage NoSQL database system, Redis has become one of the key technologies for building high-availability database systems with its excellent performance and flexible data model. This article will delve into the high availability technology of Redis and demonstrate it with specific code examples. 1. The high availability requirements of Redis in actual applications

What is the relationship between database, database system and database management system? What is the relationship between database, database system and database management system? Jan 11, 2021 pm 06:20 PM

The relationship between database, database system and database management system is: database system includes database and database management system. A database system is a computer system with a database, which generally consists of a database, a database management system (and its development tools), related hardware, software and various personnel.

What is the core of a database system? What is the core of a database system? Sep 27, 2021 pm 02:24 PM

The core of the database system is the database management system (DBMS), which is system software that works with the support of the operating system and solves how to organize and store data scientifically, and how to obtain and maintain data efficiently; DBMS can perform unified management and management of the database. controls to ensure the security and integrity of the database.

What is the structure of most database management systems currently used? What is the structure of most database management systems currently used? Aug 24, 2022 pm 02:15 PM

The structure of database management systems is mostly "relational structure". The relationship structure is an unformatted structure that uses a single two-dimensional table structure to represent entities and the relationships between entities. The relational structure organizes data in the form of record groups or data tables to facilitate storage and transformation using the relationships between various entities and attributes. It does not have hierarchies or pointers. It is a way to establish the relationship between spatial data and attribute data. Very efficient way to organize data.

What are the core of a database system? What are the core of a database system? Aug 16, 2023 am 11:48 AM

The core of the database system consists of the following elements: 1. Database; 2. Database management system; 3. Data model; 4. Database query language; 5. Database management tools; 6. Database applications.

What is a database system What is a database system Sep 27, 2021 pm 01:43 PM

Database system is a system composed of database and its management software. It is an ideal data processing system developed to meet the needs of data processing. It is also a software that provides data for actual operational storage, maintenance and application systems. A system is a collection of storage media, processing objects, and management systems.

What are the characteristics of database systems? What are the characteristics of database systems? Aug 15, 2023 pm 01:16 PM

The characteristics of the database system are data sharing and centralized management, data independence, data consistency and integrity, data security and permission control, efficient data access and query, scalability and scalability, and data backup and recovery. Detailed introduction: 1. The database system can centrally manage and store a large amount of data, and different users can share the same data, avoiding the problems of data redundancy and data inconsistency; 2. The database system realizes the separation of data and applications, and the physical separation of data Storage and logical representation are abstracted into database models and so on.

See all articles