当前位置:网站首页>MySQL decompression installation steps (Windows)
MySQL decompression installation steps (Windows)
2022-07-19 07:21:00 【Walk in the clouds】
MySQL Decompression version installation steps (Windows)
Important things are to be repeated for 3 times :
notes : If the system has been installed mysql, If you have configured environment variables , Mind deleting the environment variable first , Otherwise, the login failure may appear in the subsequent login .
notes : If the system has been installed mysql, If you have configured environment variables , Mind deleting the environment variable first , Otherwise, the login failure may appear in the subsequent login .
notes : If the system has been installed mysql, If you have configured environment variables , Mind deleting the environment variable first , Otherwise, the login failure may appear in the subsequent login .
- decompression mysql Installation package , The extracted folder is the installation directory , Such as D:\mysql-8.0.11-winx64
- Create a new configuration file in the installation directory my.ini, The contents are as follows: :
[mysql]
# Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port , Port number can be customized , Just don't conflict with the previous version
port = 3306
# Set up mysql Installation directory
basedir=D:\MySQL\mysql-5.7.31-winx64
# Set up mysql Database data storage directory
datadir=D:\MySQL\mysql-5.7.31-winx64\data
# Maximum connections allowed
max_connections=200
# 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
#default-time_zone Default time zone , You can leave it blank , But for use now() convenient , It is recommended to set
default-time_zone = '+8:00'
# Solve the problem of grouping query
sql_mode ='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION'
Create a folder in the installation directory data
Running as an administrator cmd Command window ( Note that the command line in administrator mode , Otherwise, the prompt of insufficient permission may appear )
In the command window, enter... Under the installation directory bin Catalog , An example command is as follows :
d:
cd \mysql-8.0.11-winx64\bin
- Run the following command , This command initializes mysql, And output information on the console , At the same time, a temporary password is generated and displayed on the console , Please remember the temporary password
mysqld --initialize --console
- Run the following command , install mysql service , The service name is MySQL, The service name can be modified , But it cannot have the same name as other versions ,
mysqld --install MySQL
- Run the following command to enable mysql service
net start MySQL
Run the following command , With root Login to the database with identity and temporary password
notes : If two... Are installed mysql Under the circumstances , install mysql8 when ,
Login should be in : mysql -P3306 -uroot -p Enter and the password will be displayed , Enter the temporary password , To log inLog in mysql Then run the following command , modify root password , Change the password you want to set
set password=‘xxxxx’;
Finally, log out , Login again and you can use the new password .
appendix
1. stop it mysql service :net stop mysql
2. uninstall mysql service :mysqld remove [mysql service name ] ( Running as an administrator cmd Command window , And enter... Under the installation directory bin Catalog )
边栏推荐
- Legendary game setup tutorial
- 网络知识-04 网络层-IPv6
- Steam game server configuration selection IP
- C语言编译器的下载、配置和基本使用
- Security自动登录与防CSRF攻击冲突解决办法
- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
- 听说今天发博客能领徽章!
- Dictionary, use of sets, conversion of data types
- Network knowledge-04 network layer IPv6
- Quickly understand redirection
猜你喜欢

基于小波域的隐马尔可夫树模型的图像去噪方法的matlab实现代码

Fundamentals of reptiles - basic principles of reptiles

4. Installation and use of idea

Pytorch learning notes (I)

用for循环怎么输出数字菱形啊

Network knowledge-03 data link layer PPPoE

m基于matlab的BTS天线设计,带GUI界面

Paper reading: deep residual learning in spiking neural networks

Connaissance du réseau - 03 couche de liaison de données - PPPoE

论文阅读:Deep Residual Learning in Spiking Neural Networks
随机推荐
How to open the service of legendary mobile games? How much investment is needed? What do you need?
My world 1.18.1 forge version open service tutorial, can install mod, with panel
Pytorch learning diary (III)
论文阅读:Deep Residual Shrinkage Networksfor Fault Diagnosis
SNN learning diary - install spikengjelly
I heard that today's blog can get a badge!
web安全(xss及csrf)
M analysis of anti-interference performance of high-speed frequency hopping communication system based on Simulink
字典,集合的使用,数据类型的转换
正则表达式
IP103.53.125. XXX IP address segment details
Mapping rule configuration of zuul route
Edit close automatically generate configuration file when saving
Matlab simulation of cognitive femtocell performance in m3gpp LTE communication network
1. What is a server?
PyTorch学习日记(三)
m基于matlab的BTS天线设计,带GUI界面
4. Installation and use of idea
Use of urllib Library
The principle of SYN Flood attack and the solution of SYN Flood Attack