当前位置:网站首页>MySQL foundation 02 - installing MySQL in non docker version
MySQL foundation 02 - installing MySQL in non docker version
2022-07-04 09:07:00 【Super brother 1986】
One : Why study databases ?
1、 Job skill requirements
2、 Now the world , Those who get data get the world
3、 How to store data
4、 Program , In the website , How to keep a lot of data for a long time ?
5、 Database is almost the core of the software system .
Two : What is a database
database ( DataBase , abbreviation DB )
Concept : Keep it in a computer for a long time , Organized , A collection of large amounts of data that can be shared , It's a number “ Warehouse ”
effect : preservation , And can manage data safely ( Such as : Add, delete, change, check, etc ), Reduce redundant …
Database Overview :
- Relational database ( SQL )
MySQL , Oracle , SQL Server , SQLite , DB2 , …
Relational database establishes the relationship between tables through foreign key Association
- Non relational database ( NOSQL )
Redis , MongoDB , …
Non relational databases usually refer to data stored in the database as objects , And the relationship between objects through each object from Determined by the attributes of the body
3、 ... and : What is? DBMS?
MySQL It should be a database management system .
MySQL brief introduction
Concept : It is now popular open source , Free of charge Relational database
history : The Swedish MySQL AB Companies to develop , At present belongs to the Oracle Its products .
characteristic :
- free , Open source database
- small , The function is all ready
- Easy to use
- Can run on Windows or Linux operating system
- It can be applied to small and medium-sized website applications
Official website : https://www.mysql.com/
install MySQL
Here we suggest that you use the compressed version , Quick installation , convenient . Not complicated .
mysql5.7 64 Bit download address :
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip
The computer is 64 Download and use 64 A version of the !
1、 Download and get zip Compressed package .
2、 Unzip to the directory you want to install to , What I decompressed is D:\Environment\mysql-5.7.19 3、 Add environment variables : My computer -> attribute -> senior -> environment variable
3、 Add environment variables : My computer -> attribute -> senior -> environment variable
choice PATH, Add after : Yours mysql Under the installation file bin Folder
4、 edit my.ini file , Pay attention to the replacement path location
[mysqld]
basedir=D:\Program Files\mysql-5.7
datadir=D:\Program Files\mysql-5.7\data
port=3306
skip-grant-tables
5、 Start... In administrator mode CMD, And switch the path to mysql Under the bin Catalog , Then input mysqld –install ( install mysql)
6、 Input again Initialization data file
7、 Then start again mysql And then by command mysql –u root –p Get into mysql Management interface ( The password can be empty )
8、 Enter the interface and change root password
update mysql.user set authentication_string=password(‘123456’) where
user=‘root’ and Host = ‘localhost’;
9、 Refresh the permissions
flush privileges;
10、 modify my.ini File delete the last sentence skip-grant-tables
11、 restart mysql It can be used normally
net stop mysql
net start mysql
12、 The following results appear in the connection test and the installation is completed
Step by step , There is no problem in theory .
If you've installed , Now we need to reload , Be sure to clean up the environment .
边栏推荐
- Global and Chinese trisodium bicarbonate operation mode and future development forecast report Ⓢ 2022 ~ 2027
- The map set type is stored in the form of key value pairs, and the iterative traversal is faster than the list set
- Bishi blog (13) -- oral arithmetic test app
- Research Report on the current market situation and development prospects of calcium sulfate whiskers in China (2022 Edition)
- C语言-入门-基础-语法-[标识符,关键字,分号,空格,注释,输入和输出](三)
- The 14th five year plan and investment risk analysis report of China's hydrogen fluoride industry 2022 ~ 2028
- After unplugging the network cable, does the original TCP connection still exist?
- 地平线 旭日X3 PI (一)首次开机细节
- Opencv environment construction (I)
- Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
猜你喜欢
C语言-入门-基础-语法-[变量,常亮,作用域](五)
微服務入門:Gateway網關
Explain TCP protocol in detail three handshakes and four waves
【无标题】转发最小二乘法
AI Winter Olympics | is the future coming? Enter the entrance of the meta universe - virtual digital human
CLion-控制台输出中文乱码
Live in a dream, only do things you don't say
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
保姆级JDEC增删改查练习
转:优秀的管理者,关注的不是错误,而是优势
随机推荐
Service call feign of "micro service"
Global and Chinese PCB function test scale analysis and development prospect planning report Ⓑ 2022 ~ 2027
awk从入门到入土(8)数组
Report on investment analysis and prospect trend prediction of China's MOCVD industry Ⓤ 2022 ~ 2028
Launchpad x | mode
Mac platform forgets the root password of MySQL
Awk from entry to earth (7) conditional statements
"How to connect the Internet" reading notes - FTTH
awk从入门到入土(7)条件语句
Awk from entry to earth (14) awk output redirection
Basic discipline formula and unit conversion
Review of last week's hot spots (6.27-7.3)
《网络是怎么样连接的》读书笔记 - FTTH
Awk from entry to penetration (6) regular matching
awk从入门到入土(12)awk也可以写脚本,替代shell
Awk from entry to earth (18) GAW K line manual
awk从入土到入门(10)awk内置函数
Some points needing attention in PMP learning
HMS core helps baby bus show high-quality children's digital content to global developers
Trim leading or trailing characters from strings- Trim leading or trailing characters from a string?