当前位置:网站首页>Centos8 install MySQL 8.0 using yum x
Centos8 install MySQL 8.0 using yum x
2022-07-07 01:54:00 【[email protected]】
Catalog
First step : add to MySQL Yum The repository
The third step : install mysql
Step four , start-up mysql, And set it to boot
Step six ,Linux Login and local login tests
First step : add to MySQL Yum The repository
yum -y install https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpmThe second step : use yumyum makecache Download the package information of the server to the local computer and cache it
yum makecacheThe third step : install mysql
sudo yum -y install mysql-community-serverInstallation successful !!!!

Step four , start-up mysql, And set it to boot
Execute it first , After successful startup, execute the next step to set it as startup
systemctl start mysqld
Set boot up
systemctl enable mysqldStep five , Change password
First check the default generated password , The default password is the last output [email protected]: All the back
sudo grep 'temporary password' /var/log/mysqld.log
Sign in , Then the password is automatically generated by the one above
mysql -uroot -p

Then the next step is to change the password , Just step by step
mysql>set global validate_password.policy=0;
mysql>set global validate_password.length=4;
mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password By 'newPassword'; # Change Password
mysql>flush privileges;
mysql>update mysql.user set host = '%',plugin='mysql_native_password' where user = 'root'; # All hosts can access
mysql>flush privileges;
mysql>exit;# Note that the initialization password must match the length , And must contain numbers , Lowercase or capital letters , Special characters .
If the following two items are wrong :ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
Run the following command first .
mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password By '[email protected]';Step six ,Linux Login and local login tests

版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061817145762.html
边栏推荐
- 各种语言,软件,系统的国内镜像,收藏这一个仓库就够了: Thanks-Mirror
- ROS learning (23) action communication mechanism
- 新工作感悟~辞旧迎新~
- sql中批量删除数据---实体中的集合
- When grep looks for a process, it ignores the grep process itself
- mongodb查看表是否导入成功
- Errors made in the development of merging the quantity of data in the set according to attributes
- 猫猫回收站
- HDU 4661 message passing (wood DP & amp; Combinatorics)
- 场景实践:基于函数计算快速搭建Wordpress博客系统
猜你喜欢

Appium自动化测试基础 — uiautomatorviewer定位工具

Analyze "C language" [advanced] paid knowledge [i]

Basic introduction and use of dvajs
![[advanced C language] 8 written questions of pointer](/img/d4/c9bb2c8c9fd8f54a36e463e3eb2fe0.png)
[advanced C language] 8 written questions of pointer

刨析《C语言》【进阶】付费知识【二】

对C语言数组的再认识

【唯一】的“万字配图“ | 讲透【链式存储结构】是什么?
![Yiwen takes you into [memory leak]](/img/a8/bd1a57ef3bde8910eff2a5f68296df.png)
Yiwen takes you into [memory leak]

ROS学习(23)action通信机制

sql中批量删除数据---实体中的集合
随机推荐
ROS学习(25)rviz plugin插件
修改px4飞控的系统时间
Appium自动化测试基础 — uiautomatorviewer定位工具
AcWing 345. 牛站 题解(floyd的性质、倍增)
shell脚本快速统计项目代码行数
ROS学习(26)动态参数配置
Set WordPress pseudo static connection (no pagoda)
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
Use nodejs to determine which projects are packaged + released
PartyDAO如何在1年内把一篇推文变成了2亿美金的产品DAO
736. LISP syntax parsing: DFS simulation questions
First experience of JSON learning - the third-party jar package realizes bean, list and map to create JSON format
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
Amway wave C2 tools
ROS学习(22)TF变换
How can I code for 8 hours without getting tired.
Can't you understand the code of linked list in C language? An article allows you to grasp the secondary pointer and deeply understand the various forms of parameter passing in the function parameter
NPM install compilation times "cannot read properties of null (reading 'pickalgorithm')“
刨析《C语言》【进阶】付费知识【完结】
Hutool post requests to set the body parameter to JSON data