当前位置:网站首页>Download and install mysql5.7 for windows 10
Download and install mysql5.7 for windows 10
2022-06-28 10:58:00 【Hua Weiyun】
MySQL Databases are used very frequently in daily life , Whether it's online or offline . Now I'll share my installation MySQL5.7 A step-by-step tutorial , This tutorial is only for windows edition .
download
Download address :https://downloads.mysql.com/archives/community/
This is a mysql Download address of official website , It is OK to choose the official website 
Select the corresponding system and version and click download
decompression
Decompress after downloading , The unzipped directory here is as follows :
Configure environment variables
Open environment variable , As shown in the red picture 
Set the environment variable :
Variable names MYSQL_HOME, The variable value is the directory just entered after decompression , Then click OK .
stay Path In system variable , add to MySQL To configure .
newly build data Contents and my.ini file

my.ini The contents of the document are as follows :
[client]port=3306default-character-set=utf8[mysqld]# Set it to itself MYSQL Installation directory basedir=E:\\developer\\mysql-5.7.36-winx64# Set to MYSQL Data directory for datadir=E:\\developer\\mysql-5.7.36-winx64\\datamax_connections=150port=3306character_set_server=utf8# Database type inndb Support transactions default-storage-engine=INNODBsql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTIONevent_scheduler=ON# Turn on query cache explicit_defaults_for_timestamp=trueskip-grant-tablesregister MySQL service
Get into MySQL Installation directory bin Catalog ,cmd Execute the following command to install MySQL service .
mysqld -install If you make a mistake :Install/Remove of the Service Denied! You need to execute... Through the administrator .
And then you'll see Service successfully installed.
Execute the following command initialization data Catalog
mysqld --initialize After executing the above command, it will be in MySQL Generated in the installation directory of data Catalog and create root user 
Start the service
Execute the following command to start MySQL
net start mysql
Log in and reset your password
because my.ini Added skip-grant-tables To configure , So you can use it directly mysql -u root -p Enter any password to log in 
And then through SQL Statement modification root User's password ;
# Switch the database to mysql library mysql>use mysql; # Change Password mysql> update user set authentication_string=PASSWORD('root') where user='root'; # Refresh MySQL Permission related tables mysql> flush privileges; mysql> exit; After changing the password , hold my.ini Medium #skip-grant-tables Comment it out and net stop mysql and net start mysql restart mysql service , Then you can mysql -uroot -proot Log on to the
If you log in and execute **show databases ** Report errors ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
Need to use alter user user() identified by “root”; Change the password again
Wu Lala Lala If you like, please praise the collection or pay attention to it
边栏推荐
猜你喜欢

sentinel

Wealth management for programmers

Summary of characteristics of five wireless transmission protocols of Internet of things

An idea plug-in that automatically generates unit tests, which improves the development efficiency by more than 70%!

Solve the problem of reading package listsdonebuilding dependency treereading state informationdone

Debug debugging in katalon

字符串 & 堆 & 方法区

DataEase安装升级

DlhSoft Kanban Library for WPF

建立自己的网站(11)
随机推荐
Blue Bridge Cup Maze (dfs+ backtracking)
一款自动生成单元测试的 IDEA 插件,开发效率提升 70% 以上!
Mysql通用二进制安装方式
Dataease installation upgrade
【实战】1364- 实现一个完美的移动端瀑布流组件(附源码)
Docker modifies the user name and password of MySQL
移动命令
【SemiDrive源码分析】【X9芯片启动流程】32 - DisPlay模块分析 - RTOS侧
随机森林以及 AMR 训练出的诗词制造器
fastposter v2.8.4 发布 电商海报生成器
Ble Bluetooth module nrf518/nrf281/nrf528/nrf284 chip scheme comparison
Ruoyi integrated building block report (NICE)
时间戳和date转换「建议收藏」
Summary of characteristics of five wireless transmission protocols of Internet of things
File的io流与base64
JSON module, hashlib, Base64
How does ETF position affect spot gold price?
MySQL common commands for viewing database performance
Secretary of the Ukrainian national security and National Defense Commission: will carry out precision strikes against targets in Russia
MySQL general binary installation method