当前位置:网站首页>MySQL introduction, detailed installation steps and usage | dark horse programmer
MySQL introduction, detailed installation steps and usage | dark horse programmer
2022-06-30 20:44:00 【Dark horse programmer official】
Catalog
Two 、MySQL Installation and use
2、 Installation package download - Decompression version
Installation package download - Installed version
One 、MySQL brief introduction
1、MySQL Introduction to
MySQL The database management system is developed by Sweden DataKonsultAB Company R & D , The company was Sun Company purchase , Now? Sun The company was again Oracle Company purchase , therefore MySQL At present belongs to the Oracle Its products .
MySQL What is used SQL Language is the most commonly used standardized language for accessing database .MySQL The software adopts a dual licensing policy , It is divided into community version and commercial version , Because of its small size 、 Fast 、 Low total cost of ownership , In general, small and medium-sized sites are chosen for development MySQL As website database .
2、MySQL Characteristics
①MySQL Database is used C and C++ language-written , To ensure the portability of the source code
② Support multiple operating systems, such as :Windows、Linux、Mac OS wait
③ Multithreading support , Can make full use of CPU resources
④ Provides for multiple programming languages API, Include C Language ,Java,PHP.Python Language, etc.
⑤MySQL To optimize the SQL Algorithm , Effectively improve the query speed
⑥MySQL Open source and no copyright restrictions , Strong autonomy 、 Low use cost .
⑧MySQL Has a long history 、 The community and users are very active , Have a problem , You can get help quickly .
3、MySql Version of
For different users ,MySQL There are two different versions :
- MySQL Community Server
Community version , free , however Mysql No official technical support .
- MySQL Enterprise Edition
Business Edition , This version is a paid version , You can try 30 God , Official technical support
- MySQL Cluster
Cluster version , Free open source , You can put a few MySQL Server Encapsulate into a Server.
- MySQL Cluster CGE
Advanced clustering , Pay for .
- MySQL Workbench(GUI TOOL)
One for MySQL The design of the ER/ Database modeling tools .MySQL Workbench It's divided into two versions , The community version (MySQL Workbench OSS)、 Commercial version (MySQL Workbench SE).
MySQL The naming mechanism used by 3 A version number consisting of a number and a suffix . for example , image mysql-8.0.26 The version number of is explained in this way :、
The first 1 A digital (8) It's the main version number , Describes the file format . All versions 5 All distributions of have the same file format .
The first 2 A digital (0) It's the release level . The main version number and release level are combined to form the release serial number .
The first 3 A digital (26) Is the version number of this release series , Increase with each new distribution .
at present ,My SQL The latest version of is MySQL 8.0.
Two 、MySQL Installation and use
1、 Installation mode
MySQL There are two ways to install the :
Decompression configuration mode

Step installation method

2、 Installation package download - Decompression version
Download address :Download MySQL Community Server (Archived Versions)

Installation package download - Installed version
Download address :Download MySQL Installer (Archived Versions)

(1) Unzip package
take MySQL Unzip the package in a directory without Chinese and spaces

(2) Setup profile
Create... In the extracted directory my.ini File and add the following :

(4) Configure system environment
- ① stay 【 My computer 】 Right click
- ② choice 【 Advanced system setup 】
- ③ choice 【 senior 】-》【 environment variable 】

(5) Configure system environment
take MYSQL_HOME Add to PATH environment variable

(6) Service operation
Enter with administrator privileges DOS, stay cmd in , Enter... In the unzip directory bin The directory executes the following commands in turn :
① Yes mysql To initialize , Please note that , A temporary password will be produced here , Use this temporary password later
mysqld --initialize --user=mysql --console
② install mysql service
mysqld --install
③ start-up mysql service
net start mysql
④ Sign in mysql, Here you need to use the temporary password produced before
mysql -uroot –p
⑤ modify root User password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ‘123456’;
⑤ modify root User permissions
create user 'root'@'%' IDENTIFIED WITH mysql_native_password BY ‘123456';
3、 Step installation
Download address :Download MySQL Installer (Archived Versions)
Follow the steps to install


After that, it can be installed according to the process , encounter `Next`( next step ) Just click

Click on `Execute` Wait a few minutes after .

When all States become Complete after , Click on Next:



Remember to enter the password here , Used to log in the database later , It is recommended to set the password to :123456.
边栏推荐
- Playwright - scroll bar operation
- Lumiprobe染料酰肼丨BDP FL 酰肼方案
- Mistakes the project manager should not make
- Document contains & conditional competition
- No "history of blood and tears" in home office | community essay solicitation
- Go learning notes
- 亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售
- 《大厂面试》之JVM篇21问与答
- uniapp-生命周期/路由跳转
- Lumiprobe核酸定量丨QuDye dsDNA BR 检测试剂盒
猜你喜欢

The Commission is so high that everyone can participate in the new programmer's partner plan

基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享

Lumiprobe染料酰肼丨BDP FL 酰肼方案

MySQL简介、详细安装步骤及使用 | 黑马程序员

DEX file parsing - Method_ IDS resolution

The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's first disciple

Study on PEGylation of lumiprobe and PEG linker - iodine-peg3-acid

亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售

On inline function

SQL优化
随机推荐
Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)
Lumiprobe protein quantitation - qudye Protein Quantitation Kit
Comparison between QT and other GUI Libraries
PHP require/include differences
Jenkins can't pull the latest jar package
C文件指针
有趣网站汇总
Openfire在使用MySQL数据库后的中文乱码问题解决
Lumiprobe biotin phosphimide (hydroxyproline) instructions
浅谈代码语言的魅力
A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
Peking University ACM problems 1001:exposition
翻转链表II[翻转链表3种方式+dummyHead/头插法/尾插法]
Mistakes the project manager should not make
Is the project manager a leader? Can you criticize and blame members?
19.04 分配器
动态样式绑定--style 和 class
Jerry's touch key recognition process [chapter]
Halcon knowledge: check the measurement objects [1]
Summary of personal work of 21 groups in the first week of summer training