当前位置:网站首页>Mysql database overview and installation process
Mysql database overview and installation process
2022-06-28 10:30:00 【Little fans of YKD】
One , Database Overview
1. What is a database ?
database (DataBase,DB): Refers to long-term storage on the computer , Organize according to certain rules , A collection of data that can be shared by various users or applications .
2. Database management system ?
Database management system (DataBase Management System,DBMS): It refers to a large-scale software for operating and managing database , For building 、 Use and maintain database , Manage and control the database in a unified way , To ensure the security and integrity of the database . Users access the data in the database through the database management system . It's actually a software
database = A collection of data + Database software
Be careful : Usually , They often use databases to represent the database software they use , This often causes confusion , To be exact , The database software should be a database management system , Database is created and operated by database management system .
3. Common relational databases
MYSQL: Open source free database , Small database . Has been Oracle( Oracle ) Acquired .MySQL6.x The version also began to charge .
Oracle: A large database of charges .Oracle Products of the company .Oracle Acquisition SUN company , Acquisition MYSQL.
DB2:IBM The company's database products , Rechargeable . In the banking system .( Highly secure database )
SQLServer: Microsoft . Charging medium-sized database .
SyBase: Has faded out of the stage of history . Provides a very professional data modeling tool PowerDesigner.
SQLite: Embedded small database , It's used on the mobile phone .
and java Related databases : mysql,oracle
Two , Installation and uninstallation of database ( requirement : It will be installed according to the document )
Specific reference document
1. Points needing attention during installation
There should be no spaces or Chinese in the installation path
2. What to pay attention to when uninstalling
Go to 360 Or control panel uninstall
Be sure to delete both folders ( Database installation path , Data storage path , These two folders are in the configuration file my.ini)
A software corresponds to a database
An entity ( class ) Corresponding to a table
3、 ... and ,sql summary
1. What is? sql?( It is the command of database software to operate the database )
SQL:Structure Query Language.( Structured query language ), The database software passed sql Statement to operate the database server
SQL By the National Bureau of standards (ANSI) American Standard for relational database language , Later, it was organized by international standards organization (ISO) International standards adopted as relational database language .
Database manufacturers (mysql,oracle,SqlServer) All support ISO Of SQL standard .
Each database manufacturer has made its own extension on the basis of the standard .
2.sql The classification of ( Understanding can )
DDL(Data Definition Language): Data definition language , Used to define database objects : library 、 surface 、 Column, etc. ;
CREATE、 ALTER、DROP These languages create 、 modify 、 Delete database and table .( It has nothing to do with the operation of data in the table )
DML(Data Manipulation Language): Data operation language , Used to define database records ( Used to add, delete, and modify data in a table )INSERT、 UPDATE、 DELETE These languages insert 、 modify 、 Delete data .【 a key 】( It is only related to the addition, deletion and modification of data in the table )
DCL(Data Control Language): Data control language , Used to define access rights and security levels ;
Mysql Database installation process
1. decompression mysql Compressed package
2. find bin Directory , And add the path to path Under environment variable
3 establish my.ini The configuration file , Change to basedir = mysql Home directory datadir = mysql Home directory \data
4 stay cmd in (cmd To run as Administrator ) Switch to bin Under the table of contents , type mysqld install
After installation, type net start mysql
5. Initialization command ( Record the random password given by the console , Be sure to remember ):
mysqld --initialize --console
、 Log in with the old password ( The first 3 The password in step ):
mysql -u root -p
7、 Change Password :
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘ New password ’;
# Then type the command to change the password :
ALTER USER [email protected] IDENTIFIED BY 'root'
Log in with the new password :
mysql -u root -p New password
边栏推荐
- [Unity][ECS]学习笔记(一)
- 增量快照 必须要求mysql表有主键的吗?
- 手把手教你处理 JS 逆向之 SVG 映射
- MySQL查看数据库性能常用命令
- The R language uses the avplots function in the car package to create added variable plots. In image interaction, manually identify (add) strong influence points that have a great impact on each predi
- Starting from full power to accelerate brand renewal, Chang'an electric and electrification products sound the "assembly number"
- Naming rules and specifications for identifiers
- What is the difference between MySQL development environment and test environment??
- 物联网5种无线传输协议特点大汇总
- Looking at jBPM from jbm3 to jbm5 and activiti
猜你喜欢
再見!IE瀏覽器,這條路由Edge替IE繼續走下去
ruoyi集成积木报表(nice)
通过PyTorch构建的LeNet-5网络对手写数字进行训练和识别
[unity][ecs] learning notes (I)
如何使用 DataAnt 监控 Apache APISIX
Day 6 script and animation system
How to distinguish and define DQL, DML, DDL and DCL in SQL
DlhSoft Kanban Library for WPF
第六天 脚本与动画系统
错过金三银四,找工作4个月,面试15家,终于拿到3个offer,定级P7+
随机推荐
谁知道在中信建投证券开户是不是安全的
Fastposter v2.8.4 release e-commerce poster generator
What is the best way to learn machine learning
【功能建议】多个工作空间启动时选择某个空间
[Unity][ECS]学习笔记(二)
MySQL cannot be opened. Flash back
爬虫小操作
Mysql通用二进制安装方式
无线通信模块定点传输-点对多点的具体传输应用
Django database operation and problem solving
BLE蓝牙模块NRF518/NRF281/NRF528/NRF284芯片方案对比
Django数据库操作以及问题解决
手把手教你处理 JS 逆向之 SVG 映射
Fabric. How to use js brush?
Hystrix 部署
增量快照 必须要求mysql表有主键的吗?
第六天 脚本与动画系统
Ble Bluetooth module nrf518/nrf281/nrf528/nrf284 chip scheme comparison
Au revoir! Navigateur ie, cette route Edge continue pour IE
dotnet 使用 Crossgen2 对 DLL 进行 ReadyToRun 提升启动性能