当前位置:网站首页>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 新密码
边栏推荐
- Generate token
- [unity] built in rendering pipeline to URP
- Django数据库操作以及问题解决
- Unity loads AssetBundle resources from the server and writes them to local memory, and loads the downloaded and saved AB resources from local memory to the scene
- An error is reported when uninstalling Oracle
- [Unity][ECS]学习笔记(二)
- 第三章 栈和队列
- 增量快照 必须要求mysql表有主键的吗?
- Day 6 script and animation system
- Crawler small operation
猜你喜欢

代理模式(Proxy)

我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!

再见!IE浏览器,这条路由Edge替IE继续走下去

How to view the web password saved by Google browser
![[happy Lantern Festival] guessing lantern riddles eating lantern festival full of vitality ~ (with lantern riddle guessing games)](/img/04/454bede0944f56ba69cddf6b237392.jpg)
[happy Lantern Festival] guessing lantern riddles eating lantern festival full of vitality ~ (with lantern riddle guessing games)

接口自动化框架脚手架-参数化工具的实现

dotnet 使用 Crossgen2 对 DLL 进行 ReadyToRun 提升启动性能

Realize an air conditioner with compose to bring you cool in summer

How to distinguish and define DQL, DML, DDL and DCL in SQL

Matplotlib attribute and annotation
随机推荐
Ffmpeg audio and video recording
Interface automation framework scaffold - use reflection mechanism to realize the unified initiator of the interface
标识符的命名规则和规范
最小栈<难度系数>
OpenHarmony应用开发之二维码生成器
sqlcmd 连接数据库报错
如何查看谷歌浏览器保存的网页密码
Must the MySQL table have a primary key for incremental snapshots?
如何使用 DataAnt 监控 Apache APISIX
缓存之王Caffeine Cache,性能比Guava更强
Read PDF image and identify content
To enhance the function of jupyter notebook, here are four tips
丢弃 Tkinter!简单配置快速生成超酷炫 GUI!
[Unity][ECS]学习笔记(二)
Inventory of excellent note taking software: good-looking and powerful visual note taking software, knowledge map tools heptabase, hydrogen map, walling, reflect, infranodus, tiddlywiki
Install using snap in opencloudos NET 6
Redis sentinel cluster main database failure data recovery ideas # yyds dry goods inventory #
June training (day 28) - Dynamic Planning
[Unity]EBUSY: resource busy or locked
Dbeaver installation and use tutorial (super detailed installation and use tutorial)