当前位置:网站首页>Install MySQL using CentOS yum
Install MySQL using CentOS yum
2022-07-27 16:15:00 【Carrot eating crocodile】
1. download mysql Source installation package
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

2. install mysql Source
yum localinstall mysql57-community-release-el7-8.noarch.rpm

3, Check mysql Source installed successfully
yum repolist enabled | grep "mysql.*-community.*"

4. install Mysql
yum install mysql-community-server


5. start-up mysql
systemctl start mysqld
6. Set boot up
systemctl enable mysqld
systemctl daemon-reload
8. modify root Local login password
1) see mysql Initial password
grep 'temporary password' /var/log/mysqld.log

2) Connect mysql
mysql -uroot -p
Enter the password obtained in the first step 
3) Change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Newpassword';
perhaps
set password for 'root'@'localhost'=password('Newpassword');
The following error may occur
Your password does not satisfy the current policy requirements
because Mysql Default password policy used , If you need to set a simple password , Click on the link below :
https://blog.csdn.net/qq_37135484/article/details/98735515
边栏推荐
- Openwrt 新增平台编译
- QT (VI) value and string conversion
- Common Oracle statements
- [sword finger offer] interview question 51: reverse pairs in the array - merge sort
- C语言程序设计(第三版)
- [sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
- Embedded development: tips and techniques -- seven techniques to meet the real-time deadline
- [sword finger offer] interview question 41: median in data flow - large and small heap implementation
- 多行文本溢出打点
- Clickhouse 20.x distributed table testing and chproxy deployment (II)
猜你喜欢
随机推荐
firefox旧版本
Coding skills - Global exception capture & unified return body & Business exception
[sword finger offer] interview question 53-i: find the number 1 in the sorted array -- three templates for binary search
Chapter I Marxist philosophy is a scientific world outlook and methodology
leetcode25题:K 个一组翻转链表——链表困难题目详解
Vant UI toast and dialog use
[sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
flume增量采集mysql数据到kafka
单机高并发模型设计
Common Oracle statements
2.2 basic elements of JMeter
三星关闭在中国最后一家手机工厂
Solve mt7620 continuous cycle uboot (LZMA error 1 - must reset board to recover)
Easy to understand, distinguish between ++i and I++
Openwrt adds RTC (mcp7940 I2C bus) drive details
Live broadcast software development, customized pop-up effect of tools
MySQL index
Pychart import existing project
[sword finger offer] interview question 50: the first character that appears only once - hash table lookup
DRF学习笔记(四):DRF视图







