当前位置:网站首页>MySQL8.0.28 installation tutorial
MySQL8.0.28 installation tutorial
2022-08-02 03:00:00 【jiey0407】
MySQL8.0.28 installation tutorial
1. Download and configure the installation file
1**, enter the official website to download the mysql installation package**
2**, unzip the installation package, as shown below**
3**, add configuration file my.ini**
Create a new text file, copy the following content into the file, and save the file as .ini format
[mysqld]
# Set port 3306
port=3306
# Set the installation directory of mysql
basedir=D:\Program Files\MySQL
# Maximum number of connections allowed
max_connections=200
# The 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 new tables
default-storage-engine=INNODB
# By default, the "mysql_native_password" plugin is used for authentication
#mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# Set the default character set of the mysql client
default-character-set=utf8mb4
[client]
# Set the default port used by the mysql client to connect to the server
port=3306
default-character-set=utf8mb4
Note: basedir is the installation directory of mysql, you can set it according to your own preferences
4**, create a mysql installation directory**
The installation directory created here is the path of the basedir configured in my.ini. If the configured directory already exists, there is no need to create it. If not, it needs to be created.
5**, copy the previously downloaded MYSQL file and the newly added my.ini file to this folder.**
Second, configure environment variables
1**, open the Control Panel, and select System, as shown below**
2**, select advanced options, open environment variables**
3**, add the bin directory of the MYSQL installation directory in the Path environment variable, as shown below**
Three, install and initialize MYSQL
1**, enter the C:WindowsSystem32 directory, find cmd.exe, right-click and select "Run as administrator"**
2**, enter the following command to enter the bin directory of the installation file**
cd /d D:Program FilesMySQLin (as shown)
3**, execute the initialization command mysqld --initialize --console, as shown below**
4**, execute the installation command**
mysqld –install (as shown below)
5**, execute the command to start the MySQL service**
net start mysql (as shown below)
4. Change the initialization password
1**, use Navicat to connect to mysql**
2**, New Connection**
3**, after the connection is successful, the password will be prompted to expire, enter a new password to **
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
随机推荐
MySQL六脉神剑,SQL通关大总结
esp32经典蓝牙和单片机连接,,,手机蓝牙作为主机
OC中new和init的区别
剑指 Offer 14- I. 剪绳子
aws s3 upload file
svm.SVC应用实践1--乳腺癌检测
MySQL8--Windows下使用压缩包安装的方法
Invalid bound statement (not found)出现的原因和解决方法
数仓:为什么说 ETL 的未来不是 ELT,而是 EL (T)
DVWA之SQL注入
analog IC layout
Flask 报错:WARNING This is a development server. Do not use it in a production deployment
MySQL函数(经典收藏)
OC中成员变量,实例变量和属性之间的区别和联系
ASP WebShell 后门脚本与免杀
* 比较版本号
2W字!详解20道Redis经典面试题!(珍藏版)
递归检查配置项是否更变并替换
PHP WebShell 免杀
【LeetCode】145. Postorder Traversal of Binary Tree