当前位置:网站首页>How to install MySQL
How to install MySQL
2022-07-22 13:29:00 【Popuessing's Jersey】
Learning projects need to use mysql, So today I want to sum up mysql Installation and use process of .
One 、 download MySQL
Mysql Official website download address
1、 Find the official website link : link https://www.mysql.com/
Click on MySQL Community Server( Community Edition );
I chose 8.0.29 Version of
Choose to download a smaller compressed package
After downloading, unzip it to the specified path .
Two 、 install MySQL
1、 establish MySQL Configuration file for , stay mysql Create a new folder my.txt file , Change the suffix to ini
3、 ... and 、 Configuration environment
stay “ This computer ” find “ attribute ”, And find “ Advanced system setup ”.
And then find “ environment variable ”, stay “ User variables ” Find “path”, And then mysql Of bin Edit the directory into it
Enter as administrator cmd, Enter the installed mysql Of bin Catalog , Initialize database
mysqld --initialize --console
install mysql service , The order is as follows :
mysqld install
start-up mysql service , The order is as follows :
net start mysql
initialization data Catalog , The order is as follows :
mysqld --initialize-insecure
Change Password
stop it mysql service
net stop mysql
1. Skip the permission table and start the service ( In this way, there is no need to modify my.ini)
mysqld --console --skip-grant-tables --shared-memory,
2. Enter the installed mysql Of bin Log in to the directory
D:\mysql\bin>mysql -u root -p
3. Leave password blank
mysql> UPDATE mysql.user SET authentication_string='' WHERE user='root' and host='localhost';
// empty , Two single quotes , No space between , It looks like a double quotation mark .
4. Refresh
mysql> flush privileges;
5. Change Password
ALTER user 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'admin';
// In this space-time password state , Change password available alter Change Password
After successfully changing the password, you can use the modified password to log in mysql 了 .
reference :
边栏推荐
- Addition, deletion, query and modification of [mdsql] table (Advanced)
- Common life cycle of uniapp
- Qt开发应用程序Debug与Release设置
- 人体体重秤体脂秤方案PCBA设计
- ClickHouse的安装
- SQL statement. After grouping, the group is sorted according to the datetime field, the latest record in the group is retained, and other items are deleted. (used to eliminate duplicate data within th
- [where can I buy hcip question bank?]
- Qt中的坐标系统
- ROS entry level tutorial
- Procurement control: shorten the procurement cycle, reduce costs and increase efficiency from the source
猜你喜欢
随机推荐
企业数字化办公选SaaS服务还是私有化服务?
How to use call, bind and apply correctly
Qscriptengine official documentation
Robin Lee: driverless driving is the greatest innovation of human value creation
2022/07/18------ clockwise printing matrix
带你刷(牛客网)C语言百题(第三天)
老薛主机磁盘空间满了怎么办
"New energy + energy storage" starts from the digital twin, Tupu will make smart power to the extreme
Common management problems and solutions in automation equipment manufacturing industry
iTOP-RK3568开发板Debian系统功能测试-有线网测试
【PostgreSQL 15】PostgreSQL 15对UNIQUE和NULL的改进
(iclr-2021) an image is equivalent to 16x16 words: a transformer for large-scale image recognition
Elemen when clicking, modify the playback index of the walking lantern
《性能之巅第2版》阅读笔记(五)--Disks监测
service(lb) 和管理的pod
Deep understanding of perfect hash
How to do member marketing? 3 tips to retain customers!
轮子五:QCustomPlot常用类
自动化设备制造行业常见管理难题及解决方案
QT uses Google breakpad to capture program crash reports (dump files)