当前位置:网站首页>mysql数据库概述以及安装过程
mysql数据库概述以及安装过程
2022-06-28 10:06:00 【ykd的小粉丝】
一,数据库概述
1.什么是数据库?
数据库(DataBase,DB):指长期保存在计算机的存储设备上,按照一定规则组织起来,可以被各种用户或应用共享的数据集合.
2.数据库管理系统?
数据库管理系统(DataBase Management System,DBMS):指一种操作和管理数据库的大型软件,用于建立、使用和维护数据库,对数据库进行统一管理和控制,以保证数据库的安全性和完整性。用户通过数据库管理系统访问数据库中的数据。其实就是一个软件
数据库=数据的集合+数据库软件
注意:通常情况下,经常会用数据库来表示他们使用的数据库软件,这经常会引起混淆,确切的说,数据库软件应该为数据库管理系统,数据库是通过数据库管理系统创建和操作的。
3.常见的关系型数据库
MYSQL:开源免费的数据库,小型的数据库。已经被Oracle(甲骨文公司)收购了.MySQL6.x版本也开始收费.
Oracle:收费的大型数据库.Oracle公司的产品.Oracle收购SUN公司,收购MYSQL.
DB2:IBM公司的数据库产品,收费的.银行系统中.(安全性很高的数据库)
SQLServer:微软公司.收费的中型的数据库.
SyBase:已经淡出历史舞台.提供了一个非常专业数据建模的工具PowerDesigner.
SQLite: 嵌入式的小型数据库,应用在手机端.
和java相关的数据库: mysql,oracle
二,数据库的安装和卸载(要求:对照着文档会安装)
具体参考文档
1.安装需要注意的地方
安装路径不要有空格和中文
2.卸载需要注意的地方
去360或者控制面板卸载
一定要删除两个文件夹(数据库安装路径,数据存放路径,这两个文件夹在配置文件里面my.ini)
一个软件对应一个数据库
一个实体(类)对应一张表
三,sql概述
1.什么是sql?(就是数据库软件来操作数据库的命令)
SQL:Structure Query Language。(结构化查询语言),数据库软件通过sql语句操作数据库服务器
SQL被美国国家标准局(ANSI)确定为关系型数据库语言的美国标准,后来被国际化标准组织(ISO)采纳为关系数据库语言的国际标准。
各数据库厂商(mysql,oracle,SqlServer)都支持ISO的SQL标准。
各数据库厂商在标准的基础上做了自己的扩展。
2.sql的分类(了解即可)
DDL(Data Definition Language):数据定义语言,用来定义数据库对象:库、表、列等;
CREATE、 ALTER、DROP这些语言创建、修改、删除数据库和表格的。(与表中数据的操作没有任何关系)
DML(Data Manipulation Language):数据操作语言,用来定义数据库记录(用于对表中的数据进行增删改)INSERT、 UPDATE、 DELETE这些语言插入、修改、删除数据。【重点】(只跟表中数据的增删改操作有关系)
DCL(Data Control Language):数据控制语言,用来定义访问权限和安全级别;
Mysql数据库安装过程
1.解压mysql压缩包
2.找到bin目录下的安装路径,并将路径添加到path环境变量下

3创建my.ini配置文件,改成basedir = mysql主目录 datadir = mysql主目录\data
4在cmd中(cmd要用管理员身份运行)切换到bin目录下,键入mysqld install
安装好后在键入net start mysql

5.初始化命令(记录控制台给出的随机密码,一定记住):
mysqld --initialize --console

、登陆旧密码登陆(第3步中的密码):
mysql -u root -p
7、 修改密码:
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘新密码’;
# 之后键入修改密码的命令:
ALTER USER [email protected] IDENTIFIED BY 'root'
使用新密码登陆:
mysql -u root -p 新密码
边栏推荐
- R language plot visualization: plot to visualize overlapping histograms, and use geom at the bottom edge of the histogram_ The rugfunction adds marginal rugplots
- Must the MySQL table have a primary key for incremental snapshots?
- [unity] built in rendering pipeline to URP
- 通过PyTorch构建的LeNet-5网络对手写数字进行训练和识别
- How to use dataant to monitor Apache apisex
- Chapter 5 trees and binary trees
- Instant messaging and BS architecture simulation of TCP practical cases
- Ideal interface automation project
- bad zipfile offset (local header sig)
- [Unity]EBUSY: resource busy or locked
猜你喜欢

Day 6 script and animation system

Realization of a springboard machine
Ribbon core source code analysis

Solve the problem that the value of the action attribute of the form is null when transferring parameters

Matplotlib attribute and annotation

bye! IE browser, this route edge continues to go on for IE

解析:去中心化托管解决方案概述

Starting from full power to accelerate brand renewal, Chang'an electric and electrification products sound the "assembly number"

Unity AssetBundle资源打包与资源加载

满电出发加速品牌焕新,长安电动电气化产品吹响“集结号”
随机推荐
使用 ABAP 操作 Excel 的几种方法
Bridge mode
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
Solve the problem that the value of the action attribute of the form is null when transferring parameters
ECS MySQL query is slow
Read PDF Text and write excel operation
QT signal and slot communication mechanism (when multiple windows communicate back and forth [parent and child windows])
[unity] built in rendering pipeline to URP
Missed the golden three silver four, found a job for 4 months, interviewed 15 companies, and finally got 3 offers, ranking P7+
卸载oracle报错
最小栈<难度系数>
To enhance the function of jupyter notebook, here are four tips
Correct conversion between JSON data and list collection
[Unity]内置渲染管线转URP
适配器模式(Adapter)
Realize an air conditioner with compose to bring you cool in summer
解决表单action属性传参时值为null的问题
JSON数据与List集合之间的正确转换
物联网5种无线传输协议特点大汇总
接口自动化框架脚手架-利用反射机制实现接口统一发起端