当前位置:网站首页>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
边栏推荐
- C语言【23道】经典面试题【下】
- AcWing 904. Wormhole solution (SPFA for negative rings)
- Gin introduction practice
- AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
- C language instance_ four
- C language instance_ five
- 一文带你走进【内存泄漏】
- AcWing 904. 虫洞 题解(spfa求负环)
- CISP-PTE实操练习讲解(二)
- POJ 3177 redundant paths POJ 3352 road construction (dual connection)
猜你喜欢

对C语言数组的再认识

dvajs的基础介绍及使用

Modify the system time of Px4 flight control

设置Wordpress伪静态连接(无宝塔)

Gin 入门实战

Comparison of picture beds of free white whoring

The difference between Tansig and logsig. Why does BP like to use Tansig

Shell script quickly counts the number of lines of project code

Basic introduction and use of dvajs

场景实践:基于函数计算快速搭建Wordpress博客系统
随机推荐
Yiwen takes you into [memory leak]
Analyze "C language" [advanced] paid knowledge [II]
DS-5/RVDS4.0变量初始化错误
Gin 入门实战
刨析《C语言》【进阶】付费知识【一】
CISP-PTE之命令注入篇
ROS学习(23)action通信机制
ROS学习(26)动态参数配置
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
When grep looks for a process, it ignores the grep process itself
C语言【23道】经典面试题【下】
AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period
js如何快速创建一个长度为 n 的数组
Shell script quickly counts the number of lines of project code
mongodb查看表是否导入成功
蓝桥杯2022年第十三届省赛真题-积木画
AcWing 1141. LAN problem solving (kruskalkruskal finding the minimum spanning tree)
公钥\私人 ssh避password登陆
ROS learning (23) action communication mechanism