当前位置:网站首页>MySQL - Installation
MySQL - Installation
2022-06-10 03:54:00 【Storyteller】
List of articles
install MySQL
1、 To configure yum Source
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
2、 install MySQL
yum install mysql-server
3、 Start the service
[[email protected] yum.repos.d]# systemctl start mysqld
4、 Get into MySQL
## Ciphertext password to enter
[[email protected] yum.repos.d]# mysql -uroot -p
## Plaintext password entry
[[email protected] yum.repos.d]# mysql -uroot -p password
-u user name
-hIP
-p password
5、 Change Password
//8.0 After the version Use root Password-free login
use mysql;
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY ' password ';
// 8.0 Before the release
net stop mysql // close mysql
mysqld --shared-memory --skip-grant-tables
mysql -uroot -p
use mysql;
// Just change the password
update user set passworde=' password ' whereuser user='root';
update user set password=PASSWORD(' password ') whereUser='root'
alter user [email protected]'localhost' identified by '123'
The configuration file
/etc/my.cnf
Log location
/var/log/mysql/mysqld.log
window install MySQL
windows Modify environment variables
- The bin Copy the path of the directory
- My computer > attribute > Advanced system settings > environment variable > edit path
边栏推荐
- Preorder traversal binary tree
- [pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
- 研究生工程伦理考试要点
- RPC practice and core principles - Advanced notes
- Code writing method of wechat applet search box
- 【TFLite, ONNX, CoreML, TensorRT Export】
- Opencv_ 100 questions_ Chapter I (1-5)
- vulnhub——BILLU: B0X
- How to customize ThreadPoolExecutor thread pool gracefully
- [singleshotmultiboxdetector (SSD)
猜你喜欢

【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】

用80%的图表满足日常工作,用剩下20%的图表建立核心竞争力!

【组队学习】【38期】组队学习内容详情!

New function official publicity playfab makes cross platform game architecture so simple

C 11 new feature: List pattern matching

RPC 实战与核心原理-进阶篇笔记

Machine learning & Content Security & overseas risk control companies

【主流Nivida显卡深度学习/强化学习/AI算力汇总】

SSTI(模板注入) ——(6)

[singleshotmultiboxdetector (SSD)
随机推荐
【图像检测-边缘检测】基于PCNN实现图像边缘提取附matlab代码
Mengxiaofeng, a Chinese encryption artist, participated in the "liquid alloy" meta universe painting exhibition held in Italy
Rest-Assure框架最全使用教程
每天都在写Getter、Setter方法,我不耐烦了,于是用了神器MapperStruct,crud效率一下子提高了! (最好使用硬编码)
[summary of methods to improve accuracy]
Unable to start web server
MySQL——约束条件
MySQL learning
C language question brushing series (III)
【半监督分类】基于K-means和Label+Propagation的半监督网页分类
C#封装FluentValidation,用了之后通篇还是AbstractValidator,真的看不下去了
RPC 实战与核心原理-高级篇笔记
RPC practice and core principles - Advanced notes
Google Earth Engine(GEE)——GPWv411:平均行政单位面积数据集
[cloud native | kubernetes] learn more about ingress
Machine learning & Content Security & overseas risk control companies
[yolov3 loss function]
反欺诈体系与设备指纹
MySQL——安装
01_ Know about 40 brilliant replies