当前位置:网站首页>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 .
边栏推荐
- Turn: excellent managers focus not on mistakes, but on advantages
- Lauchpad X | 模式
- "How to connect the Internet" reading notes - FTTH
- Launpad | basic knowledge
- awk从入门到入土(8)数组
- How to pass custom object via intent in kotlin
- 埃氏筛+欧拉筛+区间筛
- Simulate EF dbcontext with MOQ - mocking EF dbcontext with MOQ
- How to play dapr without kubernetes?
- awk从入门到入土(15)awk执行外部命令
猜你喜欢
Bishi blog (13) -- oral arithmetic test app
09 softmax regression + loss function
Some points needing attention in PMP learning
Explain TCP protocol in detail three handshakes and four waves
Jianzhi offer 09 realizes queue with two stacks
C language - Introduction - Foundation - syntax - [main function, header file] (II)
Codeforces Global Round 21(A-E)
After unplugging the network cable, does the original TCP connection still exist?
Educational Codeforces Round 119 (Rated for Div. 2)
Nurse level JDEC addition, deletion, modification and inspection exercise
随机推荐
Webapi interview question summary 01
Dynamic analysis and development prospect prediction report of high purity manganese dioxide in the world and China Ⓡ 2022 ~ 2027
Use Alibaba cloud NPM image acceleration
Awk from entry to earth (7) conditional statements
Awk from entry to earth (15) awk executes external commands
上周热点回顾(6.27-7.3)
【LeetCode 42】501. Mode in binary search tree
Reload CUDA and cudnn (for tensorflow and pytorch) [personal sorting summary]
"How to connect the Internet" reading notes - FTTH
CLion-控制台输出中文乱码
Awk from digging into the ground to getting started (10) awk built-in functions
The map set type is stored in the form of key value pairs, and the iterative traversal is faster than the list set
Leetcode topic [array] - 121 - the best time to buy and sell stocks
C語言-入門-基礎-語法-[運算符,類型轉換](六)
Report on research and investment prospects of polyglycolic acid industry in China (2022 Edition)
Awk from entry to soil (5) simple condition matching
如何编写单元测试用例
Mantis creates users without password options
China battery grade manganese sulfate Market Forecast and strategic consulting report (2022 Edition)
LeetCode 74. Search 2D matrix