当前位置:网站首页>MySQL installation configuration -version 8.0 -windows
MySQL installation configuration -version 8.0 -windows
2022-07-22 09:27:00 【fenghuashao】
Catalog
MySQL Installation configuration -8.0 edition -Windows
Two 、 Download, unzip and configure mysql my.ini file
1、 Get the following directory
2、 New file my.ini, Paste the following
3、 ... and 、 register mysql service , And initialization mysql
3、 Check after initialization root Temporary password
Four 、 start-up mysql, Set auto start
MySQL Installation configuration -8.0 edition -Windows
One 、 download MySQL
Download address :https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.23-winx64.zip
Please visit the latest version by yourself mysql Download from the official website
Two 、 Download, unzip and configure mysql my.ini file
1、 Get the following directory
2、 New file my.ini, Paste the following
[mysql]
# Set up mysql Client default character encoding form
default-character-set=utf8mb4
[mysqld]
# Set the port number , Default 3306
port = 3306
# Set up mysql Installation directory
basedir=D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64
# Set up mysql Database data storage directory
datadir=D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64\data
# Set the maximum number of connections
max_connections=200
# Number of connection failures allowed
max_connect_errors=10
# The character set used by the server defaults to utf8mb4
character-set-server=utf8mb4
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
# By default “mysql_native_password” Plug in authentication
#mysql_native_password
default_authentication_plugin=mysql_native_password
[client]
# Set up mysql The default port when the client connects to the server
port=3306
default-character-set=utf8mb4
3、 Modify corresponding position 、 After modifying the port number and other information, save the file to the root directory
3、 ... and 、 register mysql service , And initialization mysql
1、 register mysql service
Administrator permission open CMD, Enter the following line by line ( The path location can be modified by itself )
cd D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64\bin D: mysqld --install
Get the information in the red box below , Registered successfully
2、 initialization mysql
Administrator permission open CMD, Enter the following line by line ( The path location can be modified by itself )
cd D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64\bin D: mysqld --initialize-insecure
The root directory will be added data The folder is shown in the figure below
3、 Check after initialization root Temporary password
open data Under the document err Postfix file
Search for keywords [email protected]
If it is [email protected] is created with an empty password ! That is to generate a temporary password , Direct access record , The password is empty. , Setting password in
If it's this , You can use the temporary password to login and then modify
Four 、 start-up mysql, Set auto start
1、 start-up mysql
Administrator permission open CMD, Enter the following line by line ( The path location can be modified by itself )
cd D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64\bin
D:
net start mysql
Start successfully as shown in the figure below
2、 Set auto start
open Windows Task manager , Open the service and find mysql service , Change the startup type to automatic startup
5、 ... and 、 Connect login
cd D:\SoftWare\Devlopment-tools\mysql-8.0.22-winx64\bin
D:
mysql -u root -p
notes :mysql Common commands for installation and configuration :
# register mysql service
mysqld --install
# remove mysql service
mysqld --remove
# initialization mysql
mysqld --initialize-insecure
# start-up mysql service
net start mysql
mysql -u user name -h Database address -p # Log in to the database
# Exit database
quit
# close mysql service
net stop mysql
mysql The installation and configuration of is over here ,thankyou.
mysql Management software Navicat See another article for usage
边栏推荐
- 数组
- Review background management system practice: two packaging styles of request parameters
- odoo+测试
- c语言之指针(四)
- Leetcode · 1720: array after XOR decoding
- 1978-2021 China Statistical Yearbook, 2003-2019 (provincial and municipal panel data), 1999-2019 (county panel data)
- 华泰扫码开户安全吗?怎么开低佣金账户
- CAN通信协议(一)
- Is it safe for Huatai to scan the code to open an account? How to open a low commission account
- 数学运算
猜你喜欢
Pointer of C language (3)
Pointer of C language (2)
Vscode configures markdown and the basic syntax of markdown
飞机躲子弹小游戏案例
各地级市-进出口与贸易差额(2000-2020)
程序员那些年的斗智斗勇!!!
odoo-js-doAction详解
c语言之指针(一)
Review background management system practice: two packaging styles of request parameters
Switch virtual environment in Jupiter notebook
随机推荐
Analysis of copyonwritearraylist
文献: Axure(简单介绍)
Municipalités locales - importations, exportations et balance commerciale (2000 - 2020)
MongoDB的使用MongoTemplate操作增删改查,分页,排序,聚合(含内嵌数据),文件上传下载
jupyter notebook中切换虚拟环境
Leetcode703: the k-th element in data flow
英语四级词汇
设备重启卡死问题分析-reboot卡死
Docker series VI Docker installation redis
The complement of position operation and shaping in C language
SQL 中delete与truncate的区别
Vocabulary of CET-4
h5py快速入门指南
Use of laravel correlation model, one to one, one to many, many to many
Byte stream
Leetcode1486: array XOR operation
String 类
各地級市-進出口與貿易差額(2000-2020)
Leetcode1734: arrangement after decoding XOR
Small game cases of aircraft dodging bullets