当前位置:网站首页>Installation and login of MySQL database
Installation and login of MySQL database
2022-06-26 06:29:00 【Wen Ke】
Digital age , With the increasing amount of data , To make our data more secure and easy to share , At the same time, in order to maintain the consistency of data information 、 integrity 、 Reduce data redundancy , We are increasingly inseparable from the database , Today, I share with you the very popular installation of life must learn (MySQL、PostgreSQL、Sqlite) One of the three databases mysql, In order to facilitate everyone to use and learn .
The contents of this article are all in win7 Middle drill .

One 、MySQL Database installation
1、 download MySQL Database software .
https://dev.mysql.com/downloads/mysql/

chart 1
2、 Installation and configuration
After downloading , We will zip Extract the package to the corresponding directory , Here I put the unzipped folder in C:\mysql-8.0.29 Next ( Please note the version number you downloaded ).
To configure MySQL :
Open the folder you just unzipped C:\mysql-8.0.29 , Create... Under this folder my.ini The configuration file , edit my.ini Configure the following basic information :
[client]# 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:\mysql-8.0.29-winx64# 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=INNODBbind-address = 0.0.0.0start-up MySQL database :
Open as administrator cmd Command line tools , Toggle directory :
cd C:\web\mysql-8.0.11\binThe key is coming.
Initialize database :
mysqld --initialize --consoleAfter execution , Will be output root User's initial default password , Here's the picture :

chart 2
Note the string after the red box , That is the initialization password , Subsequent login needs to use , It is recommended to change the password after logging in .
Start installation command :
mysqld installstart-up mysql service :
net start mysqlthus ,mysql Installation complete .
Two 、 Sign in
1、 Command line login
Open Command Prompt , Enter a command in the following format , Enter the password , Pictured :
mysql -h HOSTNAME -u USERNAME -p
chart 3
Local login can be omitted HOSTNAME:
mysql-u wyj -p
2、 Log in using the database management software tool
We usually use database management tools to operate the database , Here we use more Navicat Premium, As for the installation, it will not be introduced in this issue .
First open the software , Click on the top left connection Icon , choice MySQL..., Fill in the corresponding information according to the prompt ,

chart 4

chart 5
Connection Name: You can write or not write at will .
Host: This machine can be filled in localhost, or 127.0.0.1

chart 6
After filling in , Click on Test Connection, Appear as shown in figure 6 The prompt message shown , That means the login is successful .
It's not easy to code , Welcome to thumb up 、 Collection 、 Focus on 、 Comment and forward , In order to write more and better articles .
Click to follow , There are hints for the next update !
边栏推荐
- TCP connection and disconnection, detailed explanation of state transition diagram
- Message queue - function, performance, operation and maintenance comparison
- University Information Management System
- Number of connections server database message: error number 2003can't connect to MySQL server on 'server address' (10061)
- Mongodb -- use mongodb to intercept the string content in the field and perform grouping statistics
- 【微服务系列】Protocol buffer动态解析
- Play with a variety of application scenarios and share secrets with Kwai MMU
- Import / export function implementation
- typescript的class结合接口(interface)的简单使用
- Research Report on pallet handling equipment industry - market status analysis and development prospect forecast
猜你喜欢

EFK升级到ClickHouse的日志存储实战

Import / export function implementation

直播预告丨消防安全讲师培训“云课堂”即将开讲!
Alarm operation and Maintenance Center | build an efficient and accurate alarm collaborative processing system

架构设计方法
Experience the new features of Milvus 2.0 together

MVC source code sharing

宝塔服务器搭建及数据库远程连接

技术Leader的思考技巧

DPDK——TCP/UDP协议栈服务端实现(二)
随机推荐
A tragedy triggered by "yyyy MM DD" and vigilance before New Year's Day~
typescript的type
Tencent's 2022 school recruitment of large factories started with salary, and the general contracting of cabbage is close to 40W!
Architecture design method
同步通信和异步通信的区别以及优缺点
Message queue - function, performance, operation and maintenance comparison
Reasons why MySQL indexes are not effective
Design and practice of low code real-time data warehouse construction system
TS泛型在函数、接口、类中使用介绍
Introduction to canal deployment, principle and use
LightGBM--调参笔记
Web components series (10) -- realize the basic layout of mycard
C# Nuget离线缓存包安装
Import export simple
Logstash——Logstash向Email发送告警邮件
Temperature alarm
温度报警器
如何让主线程等待子线程执行完毕后再执行
MYSQL索引不生效的原因
Market trend report, technical innovation and market forecast of China's valeryl chloride