当前位置:网站首页>Mysql5.7 compressed package installation tutorial
Mysql5.7 compressed package installation tutorial
2022-07-28 17:56:00 【Mordo 0】
1. download mysql Compressed package
https://downloads.mysql.com/archives/community/
Choose the version you want to download

Unzip the downloaded compressed package and create a new data The folder and my.ini file

stay my.ini Write configuration files inside
[mysql]
# Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port
port = 3306
# Set up mysql Installation directory
basedir=D:\mysql-5.7.32-winx64
# Set up mysql Database data storage directory
datadir=D:\mysql-5.7.32-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
# Password-free login
skip-grant-tables

To configure mysql environment variable

To configure mysql
Input
mysqld --initialize
mysqld -install
net start mysql

Change Password
The first method : Open password free login in the form of configuration file
mysql -u root -p
Because in my.ini There is no password login configured , So there is no need to enter a password 
Get into mysql
use mysql
update mysql.user set authentication_string=password('123456') where user='root';

sign out cmd, And will my.ini The password free login in it is commented out

The second method : Open password free login by command
(1) Out of Service net stop mysql
(2) Input mysqld --skip-grant-tables Open password free MySQL service . This is the time , The cursor keeps flashing . Be careful , don't move , Open another command line window .
(3) In the new dos Window input command :mysql –u root –p password ( The default password is root) Directly enter . Login successful .
Get into mysql
use mysql
update mysql.user set authentication_string=password('123456') where user='root';
Restart the service
net stop mysql
net start mysql
Re enter mysql You need a password 
边栏推荐
- Point cloud processing voxel filter
- C# WPF 正常的项目突然提示 当前上下文中不存在名称“InitializeComponent”
- IDEA报错Error running ‘Application‘ Command line is too long解决方案
- 【p5.js】实战临摹——国际象棋盘
- Electrotechnics self study notes 1.22
- mmdetection3D---(1)
- PyTorch中grid_sample的使用方法
- [unity] how to play sprite Jiugongge?
- 三维点云处理系列----PCA
- Point cloud processing -- binary tree
猜你喜欢
随机推荐
Tips--对卷积的物理意义的理解
域名解析问题记录
IO operation
abstract、static、final
Point cloud processing -- binary tree
OpenMV(三)--实时获取摄像头图片
开了一个网站的会员,需要下载电子书的留言即可,免费帮下载
webview里面$(document).width()都是一个值
abstract、static、final
关于图片的像素、分辨率、尺寸问题的解答,以及显示器的显示大小。
ROS scattered knowledge points and error resolution
On the non recursive and recursive implementation of finding the nth Fibonacci number respectively
[p5.js learning notes] local variable (let) and global variable (VaR) declaration
方法、函数
【Unity Scriptable Object】教程 | 在Unity中使用 Scriptable Object 存储物体数据信息
电脑充不进去电的解决方法
2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程
Leetcode systematic question brushing (V) -- dynamic programming
[advanced C language] - Advanced pointer [i]
MySQL详解






![[advanced C language] - Advanced pointer [i]](/img/62/d3410a61b931177fc02c1801489b5a.png)
![[C language must see] yo, writing bugs, I'm sure you've stepped on the pit](/img/0b/6f0faeb6896824ca94ce7ca983065a.jpg)

