当前位置:网站首页>Developers, MySQL column finish, help you easily from installation to entry
Developers, MySQL column finish, help you easily from installation to entry
2022-07-04 17:28:00 【Prince】
author : Sophomore computer student Xiao Zhou
* Home page : Quietly follow Xiao Zhou
The key :MySQLinstall5.7
*️ Study : Subscribe to database columns
Learn more MySQL
Three articles Society MySQL database 【 Basic knowledge of 】
Three articles Society MySQL database 【 Query details 】
Three articles Society MySQL database 【 Advanced part 】
Hello everyone , I am a little weeks , Zhou qiluo's Zhou , I wrote three pieces of study before the holiday MySQL Series articles , But I didn't talk about the installation configuration , Make up today , Cooperate to form an introductory series , The article will be constantly mended and improved , You can subscribe to study with your favorite friends , If you think the article is well written , Remember that Sanlian supports poor bloggers

List of articles
- 1. download MySQL5.7 Compressed package
- 2. uninstall MySQL service
- 3. Configure environment variables
- 4. Why configure environment variables ?
- 5. establish my.ini file
- 6. mount this database
- 7. Initialization data
- 8. start-up MySQL
- 9. Get into MySQL terminal
- 10. Change Password
- 11. Refresh permissions and exit
- 12. Turn on permission validation
- 13. restart MySQL
- 14. Sign in MySQL
- 15. Perfect flowers
1. download MySQL5.7 Compressed package
Click to enter the download page


When the download is complete , Extract
Be careful : It's better not to have Chinese and spaces in the decompression path

2. uninstall MySQL service
If an error occurs during installation , uninstall MySQL service You can use the following command
sc delete mysql
3. Configure environment variables
Search for environment variable And open

Choose environment variables

Select the system variable , Create a new one

The variable name is MYSQL_HOME , The variable value is installation MYSQL Directory bin Directory on the outer layer of the directory

find Path Variable , Double click Edit

Click New

The value is %MYSQL_HOME%\bin, After that, keep clicking OK OK 了

4. Why configure environment variables ?
Use mysql, It's actually using bin Executable files in directory , If we're not here MySQL Of bin Under the table of contents , You cannot use these executables , however windows If not found in the current directory , There will be more path Find under variable , Use it when you find it , If you cannot find it, you will report an error , therefore , The purpose of configuring environment variables is to allow us to use them in any directory MySQL The executable of
5. establish my.ini file

edit my.ini file , Change the installation directory to your own installation directory , The data directory is added after the installation directory data Catalog .
[client]
port=3306
default-character-set=utf8
[mysqld]
# Set it to itself MYSQL Installation directory
basedir=D:\\mysql5.7\
# Set to MYSQL Data directory for
datadir=D:\\mysql5.7\data\
port=3306
character_set_server=utf8
# Skip security checks
skip-grant-tables
6. mount this database
Search for cmd, And run as administrator

Switch to MySQL Of bin Under the table of contents , Execute the installation command
mysqld -install

7. Initialization data
Finished , Continue initializing the database , Execute the following command :
mysqld --initialize-insecure --user=mysql
If there is a mistake here , The error information is as follows , Namely my.ini Note that the path of the file starts with a double backslash , Just change it and execute it again
mysqld: Can't create directory 'D: oftware\environment\mysql5.7.38\mysql-5.7.38-winx64\data\' (Errcode: 2 - No such file or directory)
If it works , There is no prompt on the console , But go back to the installation directory , You'll find more data Folder , And this folder has data , Around the 120mb about

8. start-up MySQL
net start mysql


So MYSQL There is no problem with being a service
9. Get into MySQL terminal
mysql -u root -p
At present root User password is empty , Enter directly without entering the password

10. Change Password
use mysql;
update user set authentication_string=password(' Your password ') where user='root' and Host='localhost';

11. Refresh permissions and exit
Refresh the permissions
flush privileges;
Log out
quit

12. Turn on permission validation
hold my.ini Skip security check in the configuration file is commented out , You need to enter the password next time you log in
# Skip security checks
#skip-grant-tables
13. restart MySQL
net stop mysql
net start mysql
14. Sign in MySQL

15. Perfect flowers
perfect , Installation and configuration of database , With the basic knowledge of the column , Query details , Advanced learning , I believe you can get started easily MySQL, And with the hand cooked , Understand some of the underlying and move towards the underlying database and tuning , Come on! , juvenile , I am a little weeks , Zhou qiluo's Zhou , If you think the article is well written , Remember that Sanlian supports poor bloggers ️
边栏推荐
- Which domestic cloud management platform manufacturer is good in 2022? Why?
- 建筑建材行业经销商协同系统解决方案:赋能企业构建核心竞争力
- R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
- Why do you say that the maximum single table of MySQL database is 20million? Based on what?
- kaili不能输入中文怎么办???
- Years of training, towards Kata 3.0! Enter the safe container experience out of the box | dragon lizard Technology
- It's too convenient. You can complete the code release and approval by nailing it!
- Is it safe for Great Wall Securities to open an account? How to open a securities account
- Solution of commercial supply chain coordination system in the mineral industry: build a digital intelligent supply chain platform to ensure the safe supply of mineral resources
- tx.origin安全问题总结
猜你喜欢

第十八届IET交直流輸電國際會議(ACDC2022)於線上成功舉辦

World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection

NoSQL之readis配置与优化(终章)

周大福践行「百周年承诺」,真诚服务推动绿色环保

Using win10 scheduling task program to automatically run jar package at fixed time

Visual Studio 2019 (LocalDB)MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782

容器环境minor gc异常频繁分析

C# 服务器日志模块

51 single chip microcomputer temperature alarm based on WiFi control

世界环境日 | 周大福用心服务推动减碳环保
随机推荐
7 RSA密码体制
NFT流动性市场安全问题频发—NFT交易平台Quixotic被黑事件分析
PingCode 性能测试之负载测试实践
智捷云——元宇宙综合解决方案服务商
矿产行业商业供应链协同系统解决方案:构建数智化供应链平台,保障矿产资源安全供应
一加10 Pro和iPhone 13怎么选?
Solution of commercial supply chain coordination system in the mineral industry: build a digital intelligent supply chain platform to ensure the safe supply of mineral resources
Go development: how to use go singleton mode to ensure the security of high concurrency of streaming media?
[Acwing] 58周赛 4489. 最长子序列
How can programmers improve the speed of code writing?
Ble HCI flow control mechanism
太方便了,钉钉上就可完成代码发布审批啦!
Is it safe for Anxin securities to open an account online? Is the account opening fee charged
MVC模式和三层架构
The winning rate against people is 84%, and deepmind AI has reached the level of human experts in army chess for the first time
S2b2b solution for lighting industry: efficiently enable the industrial supply chain and improve the economic benefits of enterprises
Yanwen logistics plans to be listed on Shenzhen Stock Exchange: it is mainly engaged in international express business, and its gross profit margin is far lower than the industry level
整理混乱的头文件,我用include what you use
Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding
周大福践行「百周年承诺」,真诚服务推动绿色环保