谁有linux系统mysql8社区版搭建的详细笔记。

谁有linux系统mysql8社区版搭建的详细笔记(不用排错,如要排错要有详细步骤)。系统版本linux7,mysql社区版mysql-boost-8.0.28.tar.gz(或其他mysql-boost-8.tar.gz此包社区版本的也可以)。多谢

这种问题,建议以后有个学习思路,官方提供了很多安装手册以及步骤,甚至出现问题的解决方案。
1、[按需下载]https://dev.mysql.com/downloads/
2、[根据机器选择具体下载版本]https://dev.mysql.com/downloads/mysql/
3、[安装文档]https://dev.mysql.com/doc/refman/8.0/en/linux-installation.html
4、[安装步骤]https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html

请参考

https://blog.csdn.net/weixin_42149982/article/details/120774979
可以参考这篇,包括怎么搭建集群

1、[按需下载]https://dev.mysql.com/downloads/
2、[根据机器选择具体下载版本]https://dev.mysql.com/downloads/mysql/
3、[安装文档]https://dev.mysql.com/doc/refman/8.0/en/linux-installation.html
4、[安装步骤]https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html

[root@gree135 ~]# systemctl restart network.service

[root@gree135 ~]# yum install -y wget

[root@gree135 ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

[root@gree135 ~]# yum localinstall mysql57-community-release-el7-8.noarch.rpm

[root@gree135 ~]# yum install mysql-community-server

[root@gree135 ~]# systemctl start mysqld
[root@gree135 ~]# systemctl enable mysqld
[root@gree135 ~]# systemctl daemon-reload
[root@gree135 ~]# systemctl stop firewalld
[root@gree135 ~]# systemctl disable firewalld
[root@gree135 ~]# grep 'temporary password' /var/log/mysqld.log
2021-10-08T03:21:28.093080Z 1 [Note] A temporary password is generated for root@localhost: 2qdMM&vmgRTB

[root@gree135 ~]# mysql -uroot -p
Enter password:

#设置密码报错,密码不符合安全等级
mysql> alter user 'root'@'localhost' identified by 'root';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

#设置mysql密码安全等级
mysql> set global validate_password_length=4;
Query OK, 0 rows affected (0.00 sec)
mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)

#重新设置密码成功
mysql> alter user 'root'@'localhost' identified by 'root';
Query OK, 0 rows affected (0.00 sec)

exit退出重新登陆,使用新密码

#设置远程登陆
mysql> grant all privileges on . to 'root'@'%' identified by 'root' with grant option;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

安装步骤参考:https://cloud.tencent.com/developer/article/1772869

安装mysql的建议,省心省力
1、用dokcer 安装
2、用yum安装

参考下面这篇文章:Linux系统安装MySQL8.0详细教程
https://www.cnblogs.com/xiaoshuzhagen/p/14676829.html

https://blog.csdn.net/shishishilove/article/details/119866660?spm=1001.2014.3001.5501