当前位置:网站首页>MySQL 8.0.29 decompressed version installation and configuration method graphic tutorial
MySQL 8.0.29 decompressed version installation and configuration method graphic tutorial
2022-06-09 17:38:00 【1024 Q】
For the computer there is no Visual C++ 2019.exe It will not be installed Mysql Install Friend, , This detailed procedure will be clearer .
One 、 download ( Official website :MySQL) Click the "MySQL" You can jump .

Slide the page down to the bottom , And click the corresponding position of the picture .

Click on :Download Download
Click on the picture ok 了 , You can start next !

Two 、 decompression , Here are some operations :( Unzip the download file , And put it in the place you like , Location of the author file :C:\Program Files\MySQL\mysql-8.0.29-winx64) Provide reference
(1) Create a file called “my.ini” And edit ( If in C Cannot create file on disk , Can be created on the desktop ):
[mysql]# Set up mysql Client default character set default-character-set=utf8[mysqld]# Set up 3306 port port = 3306# Set up mysql Installation directory basedir = C:\\Program Files\\MySQL\\mysql-8.0.29-winx64\\# Set up mysql Database data storage directory datadir = C:\\Program Files\\MySQL\\mysql-8.0.29-winx64\\data# Maximum connections allowed max_connections=20# The character set used by the server defaults to 8 Bit coded latin1 Character set character-set-server=utf8# The default storage engine that will be used when creating a new table default-storage-engine=INNODB# Create mode sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLESC:\\Program Files\\MySQL\\mysql-8.0.29-winx64\\ This directory must be “\\”, Don't make it “\” Otherwise, it will report a mistake ,
Mysq The installation directory and data storage directory must be modified to the directory set by yourself , Unless the directory you set is consistent with the above .
(2) Will edit the good “myini” Drag the file into the unzipped file ( And bin Equal directory drive )

(3) To configure MySQL Environment variables of :

Create a new system variable in the system variable , And fill in the corresponding information , Click OK .
MYSQL_HOMEC:\Program Files\MySQL\mysql-8.0.29-winx64 # This is a bin The directory above 
Again , Look for... In system variables Path, Click edit , After adding at the bottom , Click OK , Exit the next time .
%MYSQL_HOME%bin
3、 ... and 、 Run as an administrator cmd, And do the following :
(1) Switch to mysql Of bin Catalog :
=========================================================
open cmd after , The default is : C:\Users\28690>
If the previously unzipped file is put into D Under the plate , First, enter :d: Jump to D Under the plate
In the input : cd: File path
Transferred to bin Under the table of contents cd C:\Program Files\MySQL\mysql-8.0.29-winx64\bin
C:\Program Files\MySQL\mysql-8.0.29-winx64\bin>
And it worked !
=========================================================

(2) perform mysqld --initialize command , It will be in bin Generate a new directory in the same level directory of data, Click on data, see .err file , You can see root User generated random password ;

If you cannot edit it directly , You can copy it and drag it to the desktop to view it , The target box is :root User generated random password

(3) perform mysqld --install command , install mysqld service :
mysqld --install(4) perform net start mysql command , start-up mysql service :
net start mysql(5) perform mysql -u root -p command , Connect mysql database , Enter the randomly generated password above ( The password here can only “ Pure hand tap ”):
mysql -u root -p(6) perform sql Reset root Password operation :
mysql> alter user 'root'@'localhost' identified with mysql_native_password by ' New password ';tips:
mysqld –initialize-insecure Automatically generate no password root user ;
mysqld –initialize Automatically generate... With random password root user ;
mysqld -remove Remove your own mysqld service ;
net stop mysql command , stop it mysql service
If an error , Please delete data Folder , Repeat the above operation
边栏推荐
猜你喜欢

谷歌浏览器书签保存在哪里以及书签导入导出方法

Solve the chrome prompt: "your connection is not a private connection" and there is no continue access option

Gesture interaction across the space, performing "handy" in the real world

Epigentek染色质可及性检测试剂盒原则与程序

With so many universities, the number of people taking the postgraduate entrance examination has risen sharply! Up to 70%!

Imshow() of OpenCV to view the pixel value of the picture

科研实习 | 北京大学可视化与可视分析实验室招收暑期实习生和推免研究生

一款高颜值开源知识管理工具

Scientific research practice | the visualization and visual analysis laboratory of Peking University enrolls summer interns and graduate students

Who says redis can't save big keys
随机推荐
Word paper format
笔试题—华为机试~待续
Parallel storage structure
自动化控制系统中滑环的应用
腾讯云数据库TDSQL|像这样的高考,其实我们每天都在经历
Swagger login address (error may be reported when logging in for the first time)
经常弹出:VSCode尝试在目标目录创建文件时发生一个错误 重试 跳过这个文件 关闭安装程序
回家-的路
Unity-代码绑定按钮功能
如何建设实时开发平台,深入释放企业实时数据价值?
Oracle分页
面试题—华为机试之知识点补充
Scientific research practice | the visualization and visual analysis laboratory of Peking University enrolls summer interns and graduate students
可以用来nlp任务评估的计算方法(语意相近计算)
c語言解决爬樓梯問題
虚拟存储机制
pyepics -- Alarm : 当一个PV越界时响应
[typecho]找到非markdown脚本语言编写的文章
Influence of two residual structures on NLP networks
妹妹们坐船头,哥哥们岸上走