当前位置:网站首页>MySQL 8.0.11 download, install and connect tutorials using visualization tools
MySQL 8.0.11 download, install and connect tutorials using visualization tools
2022-04-23 13:11:00 【ArchieSean】
The blogger's name is taken from 《 Shaun the Sheep 》 Shawn the lamb in the , The name is : Sean , Transliterated as Sean, Take your own last name : Archie , In order to conform to our reading habits , Connected to form ArchieSean. The blogger is currently a junior reading , Aiming to build blog into a technical stack of personal online notes , Be convenient for yourself and others . If there are any mistakes in the blog , Please point out , Thank you. .
List of articles
MySQL The download
Download address : mysql Download the official website link
Here we use 8.0.11 Download... For example :
decompression
Preparations before installation
First, let's decompress the mysql file , Put it on the drive letter we want to install , Here I put d The root directory of the disk , Pictured
My file name has been changed here to mysql-8.0.11.
- Then we're going to check mysql-8.0.11 Is there... In the directory my.ini file , If there is an open , If not created manually . Make the content consistent with the following :
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
#skip-grant-tables
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# mysql root directory
basedir = D:/mysql-8.0.11
# Data file storage directory
datadir = D:/mysql-8.0.11/data
# port , Default 3306
port = 3306
# Unique identification of the service instance
# server_id = MySQL
# Maximum connections allowed
max_connections=200
# Number of connection failures allowed . This is to prevent someone from trying to attack the database system from the host
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
default_authentication_plugin=mysql_native_password
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
join_buffer_size = 128M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysql]
# Set up mysql Client default character set
default-character-set=utf8mb4
[client]
# Set up mysql The default port when the client connects to the server
port=3306
default-character-set=utf8mb4
install
- open cmd , Run as administrator
- Copy mysql8.0.11 Of bin route ( As shown in the figure above )
- stay cmd Input in cd D:\mysql-8.0.11\bin, enter
- Input d:, enter
- Get into mysql Of bin Catalog , Next, enter this command : mysqld --initialize --console after , enter , See the picture below ( All the above operations )
【 Hit the blackboard here 】 Put the contents in the red box in the figure ( password ) Copy it . The content of this paragraph produced by different computers is different , Copy the password first ( Paste it anywhere , It's still useful to put it first *). - And then it goes on to cmd Enter command in : mysqld --install
- Next launch mysql service : command net start mysql
- Sign in mysql. Continue typing commands : mysql -uroot -p password ( The password here is the content copied above )
( The content in the red box is the password copied above ) If it's as shown , be mysql Login successful
Modify super administrator password
Continue to use... On the basis of successful login above cmd operation
- Copy this code to cmd in :
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'
The above code means to modify the super administrator root The password for root( Change your password as needed )
( Remember to add English conditions “;”) Change password successfully and exit sign out mysql service .
- Check it out
Use the command to verify whether the password is changed successfully .
Empathy , stay cmd Medium mysql Of bin Enter the following command under the directory :
mysql -uroot -proot // If I didn't change the password here root, You can change it to your own password
Visualization tools Navicat Use
- Navicat The installation of is not explained here ( direct next The next step is to install )
- Use : A picture to understand its basic use
After clicking test , Display success , Then click the OK button in the figure to connect to mysql.
【 Hit the blackboard here 】 Before connecting , Make sure that mysql The status of the service is , It's in the above command : net start mysql Opening service .
If there are any problems , Please point out in the comments section , thank you .
版权声明
本文为[ArchieSean]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231306322836.html
边栏推荐
- office2021安装包下载与激活教程
- R语言中dcast 和 melt的使用 简单易懂
- GIS practical tips (III) - how to add legend in CASS?
- Community version Alibaba MQ ordinary message sending subscription demo
- 4.22 study record (you only did water problems in one day, didn't you)
- HQL statement tuning
- 5道刁钻的Activity生命周期面试题,学完去吊打面试官!
- 【行走的笔记】
- 100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
- 100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
猜你喜欢
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
Request和Response及其ServletContext总结
Recovering data with MySQL binlog
100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
Summary of JVM knowledge points - continuously updated
解决虚拟机中Oracle每次要设置ip的问题
在 pytorch 中加载和使用图像分类数据集 Fashion-MNIST
Vscode tips
nodeJs + websocket 循环小案例
AUTOSAR from introduction to mastery 100 lectures (81) - FIM of AUTOSAR Foundation
随机推荐
Start mqbroker CMD failure resolution
HQL find the maximum value in a range
叮~ 你的奖学金已到账!C认证企业奖学金名单出炉
three. JS text ambiguity problem
4.22学习记录(你一天只做了水题是吗)
7_ The cell type scores obtained by addmodule and gene addition method are compared in space
Mui + hbuilder + h5api simulate pop-up payment style
@优秀的你!CSDN高校俱乐部主席招募!
These vscode extensions are my favorite
Common interview questions and detailed analysis of the latest Android developers in 2020
MySQL -- 16. Data structure of index
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
鸿蒙系统是抄袭?还是未来?3分钟听完就懂的专业讲解
Use of Presto date function
Hbuilderx + uniapp packaging IPA submission app store stepping on the pit
7_Addmodule和基因加和法add 得到的细胞类型打分在空间上空转对比
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
数据仓库—什么是OLAP
9419 page analysis of the latest first-line Internet Android interview questions
web三大组件之Servlet